Course

# Pandas Resample With resample() and asfreq()

This tutorial explores time series resampling in pandas, covering both upsampling and downsampling techniques using methods like .asfreq() and .resample().

Jun 2024 · 7 min read

### What is the difference between rolling and resample in pandas?

### What is resample('MS') in Python?

### When should I use resampling?

### What are the disadvantages of resampling?

Topics

Learn more about time series with these courses!

4 hr

43K

Course

### Manipulating Time Series Data in Python

4 hr

56.1K

Course

### Visualizing Time Series Data in Python

4 hr

22.1K

See More

RelatedSee MoreSee More

cheat sheet

### Pandas Cheat Sheet for Data Science in Python

A quick guide to the basics of the Python data analysis library Pandas, including code samples.

Karlijn Willems

4 min

cheat sheet

### Reshaping Data with pandas in Python

Pandas DataFrames are commonly used in Python for data analysis, with observations containing values or variables related to a single object and variables representing attributes across all observations.

Richie Cotton

tutorial

### Pandas Drop Duplicates Tutorial

Learn how to drop duplicates in Python using pandas.

DataCamp Team

4 min

tutorial

### Pandas Tutorial: DataFrames in Python

Explore data analysis with Python. Pandas DataFrames make manipulating your data easy, from selecting or replacing columns and indices to reshaping your data.

Karlijn Willems

20 min

tutorial

### Python Exploratory Data Analysis Tutorial

Learn the basics of Exploratory Data Analysis (EDA) in Python with Pandas, Matplotlib and NumPy, such as sampling, feature engineering, correlation, etc.

Karlijn Willems

30 min

tutorial

### Moving Averages in pandas

Learn how you can capture trends and make sense out of time series data with the help of a moving or rolling average.

Aditya Sharma

8 min