Answers for "how to read a column from csv file in python using pandas"

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
2

read a csv file in pandas

you should be in the same dir as .py file 

df = pd.read_csv('your_file_name.csv')
Posted by: Guest on May-11-2020

Code answers related to "how to read a column from csv file in python using pandas"

Python Answers by Framework

Browse Popular Code Answers by Language