Importing Data Into Pandas Dataframes
Importing Data Into Pandas Dataframes
1
Dataset Temperature and Ice Cream Sales - A public dataset relating temperature and
ice cream revenue
[2]: df = pd.read_csv('Data/Ice Cream Sales - temperatures.csv')
df.head(2)
usecols=['Name', 'Artists'])
df.head(3)
2
[5]: Name Artists
0 Steady Rain in a Forest with Light Background … Nature Sounds
1 Soundarya Lahari Mambalam Sisters
2 Waves of Abundance & Fullfillment Zen Life Relax
data[1].head()
[7]: Language \
0 1C:Enterprise programming language
1 ActionScript
2 Ada
3 Aldor
4 ALGOL 58
3
2 Application, embedded, realtime, system Yes
3 Highly domain-specific, symbolic computing Yes
4 Application Yes
Other paradigms \
0 Object-based, Prototype-based programming
1 prototype-based
2 Concurrent,[5] distributed,[6]
3 NaN
4 NaN
Standardized?
0 No
1 Yes 1999-2003, ActionScript 1.0 with ES3, Acti…
2 Yes 1983, 2005, 2012, ANSI, ISO, GOST 27831-88[7]
3 No
4 No
conn = sqlite3.connect('Data/favorites.db')
print(df)
id title
0 1 How I Met Your Mother
1 2 The Sopranos
2 3 Friday Night Lights
3 4 Family Guy
4 5 New Girl
.. … …
4
152 153 Sherlock
153 154 Anne With An E
154 155 Money Heist
155 156 Succession
156 157 Silicon Valley
1.5 Requirments
• Pandas
• Sqlite3
• Openpyxl