Skip to content Skip to site navigation Skip to service navigation

Summarize Your Data with Pivot Tables in Python

New session times will be displayed below upon confirmation.

Effective immediately in response to COVID-19, all Technology Training classes will be delivered online until further notice.

In advance of each session, Tech Training will provide you with a Zoom link to your class, along with any required class materials.
 


 

In this class, you will have the opportunity to develop Python scripts to create pivot tables in an automated way by leveraging the Pandas module. Real-life examples are presented to generate reports based on data aggregation that can be reused for dynamic datasets.

Prerequisite: Completion of the "Python for Beginners" class, or equivalent Python experience.

 

Topics in this session include:

  • Introduction to Jupyter Notebook
  • Learn the Pandas and Numpy modules to read, prepare, and write datasets
  • Introduction to the "pivot_table", "pivot", "stacked", and "unstacked" functions
  • Splitting, apply, and grouping datasets
  • Grouping datasets by multiple columns
  • Aggregate data with different statistical functions such as len, sum, min,max, unique, nunique, etc.
  • Aggregate data by multiple columns
  • Resetting hierarchical indices and columns 
  • Build aggregation automation and share results
     

 

 


University IT Technology Training classes are only available to Stanford University staff, faculty, students and Stanford Hospitals & Clinics employees. A valid SUNet ID is needed in order to enroll in a class.

 

Custom training workshops are available for this program

Technology training sessions structured around individual or group learning objectives. Learn more about custom training


University IT Technology Training sessions are available to a wide range of participants, including Stanford University staff, faculty, students, and employees of Stanford Hospitals & Clinics, such as Stanford Health Care, Stanford Health Care Tri-Valley, Stanford Medicine Partners, and Stanford Medicine Children's Health.

Additionally, some of these programs are open to interested individuals not affiliated with Stanford, allowing for broader community engagement and learning opportunities.