Chapter 2 Advanced Operations On Dataframeseng
Chapter 2 Advanced Operations On Dataframeseng
DataFrames
Based on CBSE Curriculum
Informatics Practices, Class-12
CHAPTER-2
By:
Mrs. Neha Tyagi (PGT CS)
KV No-5 2nd Shift, Jaipur
KVS RO Jaipur
Pivoting DataFrame
• Pandas is a popular library for Data analysis .
• Pivoting is one of the key actions for a Data–Analyst. Means
providing an axis to the table data, on the basis of that axis the
database will work.
• Using Pandas, MS-Excel type of pivot tables can be created.
• These tables summarizes the big data and create meaningful
reports to save your time.
• Pivot table allows us to fetch important record from a large and
detailed data set.
• Pivot tables can automatically sort, count and total etc.
• In general, pivoting means to use unique value from a
index/column and make dataframe.
• To make pivot table we use pivot( ) or pivot_table() from
pandas.
This is unstacking
or
Points to remember:
1. pivot( ) method creates a new table whose row and column are unique.
2. pivot( ) method is used to pivot without aggregation.
3. stacking means moving innermost column index to innermost row index.
www.pythontrends.wordpress.com