Show Menu
Cheatography

Python For Data Science - Pandas Library Cheat Sheet (DRAFT) by

Python For Data Science - Pandas Library

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

Pandas Basics

Pandas Datast­ruc­tures
1. Series
2. DataFrames
SERIES
1D labeled homoge­neously-typed array.
Series is similar to a 1-D numpy array; Series are one-di­men­sional array-like struct­ures, though unlike numpy arrays, they often contain non-nu­meric data (chara­cters, dates, time, booleans etc.)
DataFrames
Generally 2D labeled, size-m­utable tabular structure with potent­ially hetero­gen­eously-typed column.
Dataframes are multid­ime­nsional arrays with attached row and column labels rather than simple integer indices.
These can have missing data but NumPy arrays cant.

Pandas Series

Syntax and Concepts
Example Code
Explan­ation & OUTPUT