Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas

#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()
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #pandas
ADD COMMENT
Topic
Name
9+7 =