class12chapter2quiz
Class 2 Chapter 2 Quiz
Read moreAll Tech at one spot
Class 2 Chapter 2 Quiz
Read moreProgram to print half Pyramid using “*”
Read moreSample Paper Solution. Section – A1. What are comments? Give the symbol used for defining a Single line commentAns :-
Read moreClass 12 th Informatics Practice Test 1.State the basic units of the computer Name the subunits that make up the
Read moreCREATE A DATAFRAME RESULTDF Solution:- import pandas as pddata = {‘Arnab’:[90,91,97,95],“Ramit”:[92,81,96,86],“Samridhi”:[89,91,88,95],“Riya”:[81,71,67,80],“Mallika”:[94,95,99,95]}sub =[‘Maths’,’Science’,’Hindi’,’English’]Result=pd.DataFrame(data,sub)print(Result)Result.rename(index={‘Maths’:’Mathematics’,’Science’:’Ssc’},inplace=True)Result.rename(columns={‘Samridhi’:’Sam’,”Mallika”:”Radhka”},inplace=True)print(Result) Output
Read moreWrite a Python program to input electricity unit charges and calculate total electricity bill according to the given condition: For
Read moreCREATE A DATAFRAME RESULTDF, CONTAINS Solution:- import pandas as pddata={‘Arnab’:[90,91,97,95],‘Ramit’:[92,81,96,86],“Sam”:[89,91,88,95],‘Ram’:[81,71,67,80],“Mohan”:[78,98,68,69]}sub = [‘Maths’,’Science’,”Hindi”,”English”]Result=pd.DataFrame(data,sub)print(Result)del Result[“Ram”]del Result[“Mohan”]Result.drop([“Hindi”])print(Result)
Read moreCREATE A DATAFRAME FOREST DFRAMEFOREST Solution :- import pandas as pd data ={‘State’:[‘Assam’,’Delhi’,’Kerala’], ‘GrossArea’:[78438,1483,38852], ‘DenseForestArea’:[2792.00,6.25,1663.00]} df=pd.DataFrame(data) print(df.loc[0:2,[‘State’,’DenseForestArea’]])
Read moreWRITE A PROGRAM TO ITERATE OVER A DATAFRAME CONTAINING NAMES AND MARKS, WHICH THEN CALCULATE MARKS AS PER THE CRITERIA
Read more