Вы находитесь на странице: 1из 9

INTRODUCTION TO DATA

Week 2 Top Bar Reserved for U-M Branding and Course Information
SCIENCE IN PYTHON

Pandas
• Created in 2008 by Wes McKinney
• Open source New BSD license
• 100 different contributors
INTRODUCTION TO DATA
Week 2 Top Bar Reserved for U-M Branding and Course Information
SCIENCE IN PYTHON

Stack Overflow
• http://stackoverflow.com
• Massive knowledge forum of
python and pandas related content
• Free to join and participate in
• Heavily used by pandas developers
instead of a mailing list
INTRODUCTION TO DATA
Week 2 Top Bar Reserved for U-M Branding and Course Information
SCIENCE IN PYTHON
INTRODUCTION TO DATA
Week 2 Top Bar Reserved for U-M Branding and Course Information
SCIENCE IN PYTHON

Planet Python
• http://planetpython.org/
• Excellent blog aggregator for
python related news
• Significant number of data science
and python tutorials are posted
• Great blend of applied beginner
and higher level python postings
INTRODUCTION TO DATA
Week 2 Top Bar Reserved for U-M Branding and Course Information
SCIENCE IN PYTHON

Data Skeptic Podcast


• http://dataskeptic.com/
• Kyle Polich, created in 2014
• Covers data science more
generally, including:
– Mini educational lessons
– Interviews
– Trends
– Shared community project
(OpenHouse)
INTRODUCTION TO DATA
Week 2 Top Bar Reserved for U-M Branding and Course Information
SCIENCE IN PYTHON

The Series

Animals Name
0 Dog
1 Bear
2 Tiger
Index Values
3 Moose
4 Giraffe
5 Hippopotamus
6 Mouse
INTRODUCTION TO DATA
Week 2 Top Bar Reserved for U-M Branding and Course Information
SCIENCE IN PYTHON

Index
The DataFrame
.loc(), .iloc() Axis 1 (columns)
Animals Owners .columns()

Axis 0 (rows) 0 Dog Chris


1 Bear Kevyn
df.iloc(2) 2 Tiger Bob
Values
3 Moose Vinod
4 Giraffe Daniel
5 Hippopotamus Fil
6 Mouse Stephanie
df[“Owners”]
df.iloc(5)[“Animals”]
INTRODUCTION TO DATA
Week 2 Top Bar Reserved for U-M Branding and Course Information
SCIENCE IN PYTHON
INTRODUCTION TO DATA
Week 2 Top Bar Reserved for U-M Branding and Course Information
SCIENCE IN PYTHON

df Boolean mask result


Animals Owners Animals Owners
0 Dog Chris True True 0 Dog Chris
1 Bear Kevyn True True 1 Bear Kevyn
2 Tiger Bob False False 3 Moose Vinod
+ =
3 Moose Vinod True True
4 Giraffe Daniel False False
5 Hippo Fil False False
6 Mouse Stephanie False False

Вам также может понравиться