How to permanently remove a column from a dataset using pandas?

906    Asked by ranjan_6399 in Data Science , Asked on Jan 15, 2020
Answered by Ranjana Admin

To permanently delete or remove a column, we have to create a dataframe to implement the operation.

import pandas as pd

df = pd.DataFrame({'col1':[1,2,3,4],'col2':[444,555,666,444],'col3':['abc','def','ghi','xyz']})


Your Answer


Parent Categories