Q. What is following statement doing?
df.drop(df.columns [0], axis = 1)
Answer :-
Axis 1 means columns. Given statement will remove the first column because of df.columns[0].
df.drop(df.columns [0], axis = 1)
Answer :-
Axis 1 means columns. Given statement will remove the first column because of df.columns[0].
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )