我有一个完全重复的海量数据集,我认为自动化任务的最佳方法是使用python。这适用于仅使用两种类型的电机的工程项目,即从动电机或先导电机
对于从动件,其结构与此完全相同(其中IFDXXXX为单个驱动器编号):
对于引线,其结构与此完全相同(其中IFDXXXX将是单个驱动器编号):
我的想法是,我将导入以下格式的excel工作表,并将其存储为带有pandas的数据框,以便以后自动生成:
做这件事最简单的方法是什么,或者还有其他更简单的方法吗?如果可能的话,我想继续使用python,因为我试图用python扩展我的知识
编辑:
最终目标是最终得到一张类似以下内容的工作表:
更新1:
假设您有一个表,您想保存标题驱动器id和角色 它们保存在数据帧df1中 要遍历您的行并创建一个新表,我更喜欢使用dict列表
这允许pandas将excel工作表存储为数据框
如果要推送在代码之后生成的数据帧,可以使用
相关问题 更多 >
编程相关推荐