【发布时间】:2017-05-11 15:58:18
【问题描述】:
在带有 pandas 的 python 中,我可以执行以下操作:
# Drop columns with ANY missing values
df2 = df.dropna(axis=1, how="any")
# Drop columns with ALL missing values
df2 = df.dropna(axis=1, how="all")
# Drop rows with ANY missing values
df2 = df.dropna(axis=0, how="any")
# Drop rows with ALL missing values
df2 = df.dropna(axis=0, how="all")
我如何类似地过滤 R data.table 中的行/列?
【问题讨论】:
标签: python r pandas filter data.table