Class 12th CBSE

Write a python program that stores the sales of 5 items of a store for each month in 12 series object that is s1 series object stores sales of these 5 items in 1st month, s2 stores of these items in 2nd month and so on.

Solution: – 

import pandas as pd s=pd.Series(['i1','i2','i3','i4','i5']) s1=pd.Series([200,100,150,125,130]) s2=pd.Series([1200,1100,1150,1125,1130]) s3=pd.Series([400,400,450,425,430]) s4=pd.Series([500,400,650,325,530]) s5=pd.Series([400,400,350,325,430]) s6=pd.Series([300,300,350,325,330]) s7=pd.Series([s1+s2+s3+s4+s5+s6]) print(s7)

Fun & Easy to follow
Works on all devices
Your own Pace
Super Affordable

Popular Videos

UX for Teams

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer

SEO & Instagram

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer

Leave a Reply

Your email address will not be published. Required fields are marked *

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.