Page 40 - IPP-12-2024
P. 40
ELECTRONIC GADGETS MANAGEMENT SYSTEM
PROGRAM
import pandas as pd
import numpy as n
import matplotlib. Pyplot as plt
srs1=pd.Series({"S.
No":"Products",'1':"SmartPhones",'2':"Laptops",'3':"TV"})
dict1={"S. No":[1,2,3,4,5,6,7,8,9,10,11,12],"MODEL_NAME":
["Ace X1","Ace X1 Pro", "Ace X2",
"Ace X2 Pro", "Ace X3","Ace Y1","Ace Y1 Pro", "Ace Y2","Ace
Y2+","Ace Y2 Ultra", "Ace Note1",
"Ace Note1 Max"],"RAM&INT.STORAGE":
["3GB,32GB","4GB,64GB","4GB,64GB","6GB,128G B","6GB,64GB",
"6GB,128GB","8GB,256GB","6GB,128GB","8GB,256GB","12GB,512GB","
6GB,128GB","8GB,256GB"],
"PRICE": [8500,12000,
14000,16500,17000,18900,24700,20500,28600,43250,35200,40900]
}
df1=pd.DataFrame(dict1)
df1.set_index("S.No", inplace=True)
print(df1)
dict2={"S. No": [1,2,3,4,5,6,7,8],"MODEL_NAME": ["Ace Infinite
R15","Ace Infinite H450",
"Ace Infinite T800","Ace Infinite Y50","Ace Infinite R65","Ace
Infinite H120G",
"Ace Infinite T400R","Ace Infinite Y70"]," RAM&INT.STORAGE":
["4GB,1TB SSD","12GB,2TB HDD",
"8GB,2TB SSD","4GB,512GB SSD","8GB,2TB HDD","12GB,2TB
HDD","8GB,2TB HDD","8GB,512GB HDD"],
"Processor Type": ["Intel Core i3 3rd Gen(1.3Ghz)","AMD Ryzen
5-3600X(3.8Ghz)",
"Intel Core i5 7th Gen(2.2Ghz)","Intel Core i5 5th
Gen(2.3Ghz}",