Computer Science, asked by ha5433350pc4cfn, 1 month ago

what is following statement doing ? Df.drop(df.columns[0],axes=1)​

Answers

Answered by kaushikdeepak646
0

Answer:

I'm aware that dropping a dataframe's columns should be as easy as:

df.drop(df.columns[1], axis=1) to drop by index

or dr.dropna(axis=1, how='any') to drop based on if it contains NaNs.

But neither of those works on my dataframe and I'm not sure if that's because of a format issue or data type issue or a misuse or misunderstanding of these commands.

Similar questions