Member-only story

Pandas — quick reference for the busy data scientist

Rabin Poudyal
5 min readDec 21, 2019

( Pandas snippets that I find useful for day to day tasks )

I want this guide to be a no-nonsense and quick reference sheet to refresh your data munging skills in pandas. So let’s dive into pandas directly.

Note: You can play around with any dataset you like.

Quick Pandas Vocabulary:

dataframe: Two-dimensional structure of data similar to a spreadsheet

series: One-dimensional indexed array of fixed data type

First, let’s load pandas

import pandas as pd
url = “https://raw.githubusercontent.com/jokecamp/FootballData/master/Germany/Bundesliga/1964/matches.csv"
  1. You can load data from the internet without downloading
data = pd.read_csv(url)
data.head()
reading data from url

(Note: tail() command picks rows from tail, also you can pass numerical parameters to head and tail commands)

Some of the exploratory data analysis(EDA) commands you can try with pandas:

# print column names
data.columns
# print general…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Rabin Poudyal
Rabin Poudyal

Written by Rabin Poudyal

Software Engineer, Data Science Practitioner. Say "Hi!" via email: rabinpoudyal1995@gmail.com or visit my website https://rabinpoudyal.com.np

No responses yet

Write a response

Recommended from Medium

Lists

See more recommendations