I want to read the CSV file in the jupyter notebook, but I don't know where to save the csv data.Where should I save it?
python3 csv jupyter-notebook
For example, it's on the HP http://pythonhow.com/data-analysis-with-python-pandas/ here.Download http://pythonhow.com/wp-content/uploads/2016/01/Income.csv, save it to your desktop, and type the following command in the jupyter notebook
importos
os.path.isfile('/Users/user/Desktop/Income.csv')
If you say True, it's stored in that directory, so if you type the following command,
import pandas as pd
df1 = pd.read_csv('C:/Users/user/Desktop/Income.csv')
print(df1)
Can't you get the following results?Is this what I'm asking you to read and save?
GEOID; State; 2005; 2006; 2007; 2008; 2009; 2010; 2011; 2012; 2013
004000US01;Alabama;37150;37952;42212;44476;3998 ...
104000US02;Alaska;55891;56418;62993;63989;61604...
204000US04; Arizona; 45245; 46657; 47215; 46914; 4573 ...
304000US05; Arkansas; 36658; 37057; 40795; 39586; 365 ...
404000US06;California;51755;55319;55734;57014;5...
© 2024 OneMinuteCode. All rights reserved.