Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Data Science Best Practices with pandas
| Date | Stars |
|---|---|
| 2026-07-24 | 529 |
| 2026-07-25 | 529 |
| 2026-07-28 | 529 |
| 2026-07-30 | 529 |
| 2026-08-06 | 529 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# Data Science Best Practices with pandas
This tutorial was presented by Kevin Markham at PyCon on [May 2, 2019](https://us.pycon.org/2019/schedule/presentation/92/). Watch the complete [tutorial video](https://www.youtube.com/watch?v=dPwLlJkSHLo&list=PL5-da3qGB5ICCsgW1MxlZ0Hq8LL5U3u9y&index=36) on YouTube.
[](https://www.youtube.com/watch?v=dPwLlJkSHLo&list=PL5-da3qGB5ICCsgW1MxlZ0Hq8LL5U3u9y&index=36 "Watch the complete tutorial video on YouTube")
## Jupyter Notebook
The tutorial code is available as a [Jupyter notebook](tutorial.ipynb). You can run this notebook in the cloud (no installation required) by clicking the "launch binder" button:
[](https://mybinder.org/v2/gh/justmarkham/pycon-2019-tutorial/master?filepath=tutorial.ipynb)
## What is the tutorial about?
The pandas library is a powerful tool for multiple phases of the data science workflow, including data cleaning, visualization, and exploratory data analysis. However, the size and complexity of the pandas library makes it challenging to discover the best way to accomplish any given task.
In this tutorial, you'll use pandas to answer questions about a real-world dataset. Through each exercise, you'll learn important data science skills as well as "best practices" for using pandas. By the end of the tutorial, you'll be more fluent at using pandas to correctly and efficiently answer your own data science questions.
## How well do I need to know pandas to participate?
You will get the most out of this tutorial if you are an intermediate pandas user, since the tutorial does not cover pandas basics.
- If you are new to pandas, I recommend watching some videos from my free [pandas course](https://www.dataschool.io/easier-data-analysis-with-pandas/) before the tutorial.
- If you just need a pandas refresher, I recommend reviewing this [Jupyter notebook](https://nbviewer.jupyter.org/github/justmarkham/pandas-videos/blob/master/pandas.ipynb), which includes all of the code from my pandas course.
## What dataset are we using?
`ted.csv` is the [TED Talks dataset](https://www.kaggle.com/rounakbanik/ted-talks) from Kaggle Datasets, made available under the [CC BY-NC-SA 4.0 license](https://creativecommons.org/licenses/by-nc-sa/4.0/).
## How do I download the CSV file from GitHub?
Here are three options that will work equally well:
- If you want to directly download only the CSV file, **right click on the following link** and select "Save As": [`ted.csv`](https://raw.githubusercontent.com/justmarkham/pycon-2019-tutorial/master/ted.csv).
- If you know how to use git, you can click the green button above and **clone the entire repository**.
- If you know how to open a ZIP file, you can click the green button above and **download the entire repository**.
## What do I need to do before the tutorial?
1. Make sure that [pandas](https://pandas.pydata.org/pandas-docs/stable/install.html) and [matplotlib](https://matplotlib.org/users/installing.html) are installed on your computer. (The easiest way to install pandas and matplotlib is by downloading the [Anaconda distribution](https://www.anaconda.com/distribution/).)
2. Download the CSV file from this repository.
3. Read the file into pandas using the `read_csv()` function to make sure everything is working.
## How can I check that pandas and matplotlib are properly installed?
1. Move the CSV file into your working directory. (This is usually the directory where you create Python scripts or notebooks.)
2. Open the Python environment of your choice.
3. If you're using the **Jupyter notebook**, run the following code:
```python
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
ted = pd.read_csv('ted.csv')
ted.comments.plot()
```
4. If you're using **any other Python environment**, run the following code:
```python
import pandas as pd
import matplotlib.pyplot as plt
ted = pd.rExcerpt of 4,901 characters
Read on GitHubKevin Markham · Data School · United States
14
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:582917f3904d56de, topic:tutorial, name:tutorial, readme:tutorial