Answers for "read a column from csv in python"

0

python read column from csv

import pandas

data = pandas.read_csv("your_file_name.csv")
value = data["columnname"]
       (or)
value = data.columname
#both works
Posted by: Guest on July-19-2021
0

remove a column from dataframe

del df['column_name'] #to remove a column from dataframe
Posted by: Guest on July-20-2020

Python Answers by Framework

Browse Popular Code Answers by Language