Show Menu
Cheatography

Pandas library Cheat Sheet (DRAFT) by

Pandas library is a tool for anyone who wants to perform data analysis using Python as a programming language.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Create a DataFrame

data = {'name': ['bob', 'john'], 'age': [21, 23]}
Dict
df = pd.Dat­aFr­ame­(data)
DataFrame constuctor
pd.Dat­aFr­ame­(data, index=­['a', 'b']}
Add an index
 

Test

Test
Test