Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to process pandas dataframe rows and columns using the shift() method in this comprehensive tutorial. Discover techniques for shifting rows upward and downward, moving columns left and right, and updating values in newly created rows and columns. Explore the application of shift() with time series datasets to update datetime-based indexes. Master the creation of rolling updates and combine shift with transpose and groupby operations to generate rolling values based on rows. Gain practical insights into leveraging the shift() method for efficient data manipulation and analysis in Python Pandas.
Syllabus
- Content Start
- Content Intro
- Using shift function to shift rows upward and downward
- Using shift function to shift columns towards left and right
- Using shift method with timeseries dataset to update datetime based index
- Creating rolling update using shift method
- Combine shift with transpose and groupby to generate rolling value based on rows
- Content Reacp
Taught by
Prodramp