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

44.2K

Course

### Manipulating Time Series Data in Python

4 hr

57.9K

Course

### Visualizing Time Series Data in Python

4 hr

22.7K

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

tutorial

### Pandas Reset Index Tutorial

Learn the pandas reset_index() method to reset the index of a DataFrame. Explore the different options available with this method and how to reset the index for simple and multi-level DataFrame.

Satyam Tripathi

8 min

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