Answers for "how to import csv into pandas dataframe"

1

how to set up dataframe from csv

import pandas as pd

column_names = ['sepel lengh', 'sepel width', 'petal lengh', 'petal width', 'class']
iris = pd.read_csv('iris.csv', names=column_names)

print(iris)
Posted by: Guest on May-19-2020
0

visualizzare csv in pycharm pandas read_csv

import pandas
df = pandas.read_csv('file.csv')
print(df)
Posted by: Guest on March-14-2020

Code answers related to "how to import csv into pandas dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language