Trying to remove a column from a dataframe with simple line of code using panda for python.
The name of the column that i\'m trying to remove is "Comments"
Here are 2 possible ways:-
First Way:-
travelTime_df.drop(['Comments'], axis=1)
Second way:-
travelTime_df.drop(columns=['Comments'])
Adding link for deep dive:- https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.drop.html