0

如何使用 petl 库删除行?

我已经使用以下方法加载了数据:

self.tab = petl.fromcsv(self.filename, delimiter=self.delimiter, encoding=self.source_encoding)

现在我怎样才能删除 self.tab 中带有条件的行?我认为在熊猫中你可以像 df.drop 但 petl 有吗?

4

1 回答 1

0

使用 select is not https://pythonhosted.org/petl/0.11.1/index.html#petl.selectisnot对您的案例进行逆向工程

于 2019-10-28T06:32:48.773 回答