[英]PETL python removing rows
how can I delete rows using petl library?如何使用 petl 库删除行?
I have loaded the data using:我已经使用以下方法加载了数据:
self.tab = petl.fromcsv(self.filename, delimiter=self.delimiter, encoding=self.source_encoding)
Now how can I delete rows in the self.tab with conditions?现在我怎样才能删除 self.tab 中带有条件的行? i think in pandas you can do like df.drop but does petl have?
我认为在 pandas 中你可以像 df.drop 一样做,但 petl 有吗?
Reverse engineer your case by using select is not https://pythonhosted.org/petl/0.11.1/index.html#petl.selectisnot使用 select is not https://pythonhosted.org/petl/0.11.1/index.html#petl.selectisnot对您的案例进行反向工程
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.