python - Reading CSV file in WinPython -


i want merge 2 csv files in spyder,

import pandas pd data1 = pd.readcsv('c:/rdata/plant1.csv') data2 = pd.readcsv('c:/rdata/species.csv') newdata = pd.merge(data1, data2, on='speies') 

but got error:

………………………………, line 9, in <module> data1 = pd.readcsv('c:/rdata/plant1.csv') attributeerror: 'module' object has no attribute 'readcsv' 

how can fix problem?

obviously there not function named 'readcsv'. read_csv.

import pandas pd data1 = pd.read_csv('c:/rdata/plant1.csv') data2 = pd.read_csv('c:/rdata/species.csv') newdata = pd.merge(data1, data2, on='speies') 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -