📜  熊猫 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:21.904000             🧑  作者: Mango

代码示例4
#for dropping a column in a dataframe
df = df.drop(['PassengerId'], axis = 1)

#for selecting all columns except one
df.iloc[:, df.columns != "Survived"]

#for checking nan values is a column
df['your column name'].isnull()