When deleting a column in a DataFrame I use:
del df['column_name']
And this works great. Why can’t I use the following?
del df.column_name
Since it is possible to access the column/Series as df.column_name
, I expected this to work.
When deleting a column in a DataFrame I use:
del df['column_name']
And this works great. Why can’t I use the following?
del df.column_name
Since it is possible to access the column/Series as df.column_name
, I expected this to work.