Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Extract column from a pandas dataframe

input_file = "C:....consumer_complaints.csv"
dataset = pd.read_csv(input_file)
df = pd.DataFrame(dataset)
new_dataframe = df.filter(['col_name_1', 'col_name_2'])
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #Extract #column #pandas #dataframe
ADD COMMENT
Topic
Name
2+5 =