Answers for "read one column pandas"

0

read one column pandas

import pandas as pd

df = pd.read_csv('some_data.csv', usecols = ['col1','col2'], low_memory = True)
Posted by: Guest on April-30-2021
0

read one column pandas

import pandas as pd
fields = ['star_name', 'ra']

df = pd.read_csv('data.csv', skipinitialspace=True, usecols=fields)
# See the keys
print df.keys()
# See content in 'star_name'
print df.star_name
Posted by: Guest on April-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language