1 min readJan 30, 2019
Thanks for the response. I think single-column selection with the brackets and dot notation both create references. I just tested df.state is df['state']
and it evaluated as True
.
And yes you can delete a column with the del
statement but it's not what I would suggest. The drop
method already exists for this and should be, in my opinion, the ‘minimally sufficient’ way to complete the task.