使用python从列中删除空白单元格并将填充的单元格向上移动
我有这个 Excel 文件,我想删除 A 列中的所有空白单元格,并使用 python 将填充的单元格向上移动。
不知道该怎么做,有什么建议吗?我知道我可以进入 Excel 并手动执行此操作,但我需要自动化此过程。将创建多个与此类似的文件,我需要自动调整此设置,以便 A 列中的所有填充单元格实际上位于 B、C、D、E 中其余数据的旁边。
I have this excel file and I would like to delete all blank cells in columns A and shift the populated cells up using python.
Not sure how to do this, any advice? I know I can go into excel and do it manually but I need to automate this process. Multiple files looking just like this will be created, and I need to automate adjusting this so that all those populated cells in column A actually sit next to the rest of the data in B, C, D, E.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
pandas
导入和修改您的 Excel。Use
pandas
to import and modify your excel.