Answers for "when deleting a column in pandas what is axis"

1

delete unnamed coloumns in pandas

# Best method so far.
df = df.loc[:, ~df.columns.str.contains('^Unnamed')]
Posted by: Guest on May-24-2021
4

r data frame remove column

df$columnName <- NULL
Posted by: Guest on May-29-2020

Code answers related to "when deleting a column in pandas what is axis"

Browse Popular Code Answers by Language