Download presentation
Presentation is loading. Please wait.
Published byJacob Gaines Modified over 6 years ago
1
IST256 : Applications Programming for Information Systems
Pandas
2
Agenda Connection Activity Teaching: Practice Activities (3) Pop Quiz!
Pandas Practice Activities (3) Thursday
3
Pop Quiz!: Connect Activity x[‘a’] ? x[‘a’][‘m’] ? x[‘m’][1] ?
x[‘p’][‘n’] ? x[‘a’][‘w’] ? x[‘a’][‘y’][-1] ? Pop Quiz!: 5 minutes on the quiz.
4
What is pandas ? Pandas is Python package for data analysis.
It Provides built-in data structures which simplify the manipulation and analysis of data sets. Pandas is easy to use and powerful, but “with great power comes great responsibility” I’m not here to teach you all things Pandas, just how it works. The rest you can figure out on your own.
5
Pandas: Essential Concepts
A Series is a named Python list (dict with list as value). { ‘grades’ : [50,90,100,45] } A DataFrame is a collection of Series (dict of series): { { ‘names’ : [‘bob’,’ken’,’art’,’joe’]} { ‘grades’ : [50,90,100,45] } }
6
Code With Me ! Pandas Basics Series DataFrame
Creating a DataFrame from a dict Get a column, Get rows Short and sweet demo: Import pandas as pd Quarters = Series( [ "Q1","Q2","Q3","Q4" ]) Sales = Series( [100, 120, 90, 150] ) Sales_df = DataFrame ( { "Quarter" : Quarters, "Sold" : Sales } ) students= [ {'Name':'Tom', 'GPA':3.4 }, {'Name':'Dick', 'GPA':3.0 }, {'Name':'Harry', 'GPA':4.0 }] Students_df = DataFrame(students)
7
Check Yourself: 90 Second Challenge!
What is the VALUE and TYPE of each of the following? df[‘Quarter’] df[ [‘Quarter’] ] df[‘Q1’] df[‘Sold’] < 110 ] df[ df[‘Sold’] < 110 ] df
8
Code With Me ! Reading Data with Pandas
Pandas can read a variety of formats!
9
What is Data Analysis? Pandas is used in data analysis.
Data Analysis is an exploratory process. Our goal is to find useful insights from our data. We need to accept there might not be any! Therefore is important to document your findings so you can communicate them to stakeholders.
10
Help me Code Data Analysis for City of Syracuse Road Ratings
11
Your “Ticket Out” Conclusion Activity http://bit.ly/2eUzlUH
The activity will be effort graded.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.