Panda program to create data frame based on e-commerce data and generate descriptive statistics.

Write a Panda program to create data frame based on e-commerce data and generate descriptive statistics with practical Example.

Program Description

This program creates data frame based on eCommerce data and generate descriptive statistics.

Program Logic:

Step1: Create dataframe  ‘Sales’ using pd.DataFrame() method which contain invoice no,product name, quantity and price

Step2: Display DataFrame ‘Sales’

Step3: Calculate mean of ‘price’ data using mean() function  and display resultant data

Step4: Calculate median of ‘price’ data using median() function and display  resultant data

Step5: Calculate mode of ‘price’ data using mode() function and display resultant data

Step6: Calculate var of ‘price’ data using var() function and display  resultant data

Step7: Calculate quantile of ‘price’ data using quantile() function and display  resultant data

Step8: Calculate describe of ‘price’ data using describe() function and display  resultant data

Below is implementation code/Source code:

Output:

<