Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 petl 库删除行?
我已经使用以下方法加载了数据:
self.tab = petl.fromcsv(self.filename, delimiter=self.delimiter, encoding=self.source_encoding)
现在我怎样才能删除 self.tab 中带有条件的行?我认为在熊猫中你可以像 df.drop 但 petl 有吗?
使用 select is not https://pythonhosted.org/petl/0.11.1/index.html#petl.selectisnot对您的案例进行逆向工程