Class name Subject Book title Chapter number Content Created at
Class XII Informatics Practices Informatics Practices 2 ValueError, with the error message: ValueError: Can you write a Cannot set a row with mismatched columns. program to count Similarly, if we try to ...
Class XII Informatics Practices Informatics Practices 2 = ResultDF.drop(['Samridhi','Rami t','Riya'], axis=1) >>> ResultDF Arnab Mallika Maths 90 94 Hindi 97 99 English 95 95 If the DataFrame has more th...
Class XII Informatics Practices Informatics Practices 2 Arnab Ramit Samridhi Riya Mallika Sub1 90 92 89 81 94 Sub2 91 81 91 71 95 English 97 96 88 67 99 Sub4 97 89 78 60 45 (E) Renaming Column Labels of ...
Class XII Informatics Practices Informatics Practices 2 When a single column label is passed, it returns the column as a Series. >>> ResultDF.loc[:,'Arnab'] Reprint 2026-27 50 InformatiPractices N otes M...
Class XII Informatics Practices Informatics Practices 2 95 Here, the rows with labels Maths and Science are displayed. Note that in DataFrames slicing is inclusivActivity 2.8 of the end values. We may us...
Class XII Informatics Practices Informatics Practices 2 It appends rowsof the second DataFrame at the end of the first DataFrame. Columns not present in the first DataFrame are added as new columns. For ...
Class XII Informatics Practices Informatics Practices 2 labels are duplicate. By default, verify_integrity = False. That is why we could append the duplicate row with label R2 when appending the two Data...
Class XII Informatics Practices Informatics Practices 2 6.72 ModeratelyDense 10192 9407 56.24 OpenForest 15116 9251 129.45 Table 2.4 Some Attributes of Pandas DataFrame Attribute Name Purpose Example Dat...
Class XII Informatics Practices Informatics Practices 2 last 5 rows of the DataFrame. to returns the >>> ForestAreaDF.empty value True if False DataFrame is >>> df=pd.DataFrame() #Create an empty dataFra...
Class XII Informatics Practices Informatics Practices 2 creating the DataFrame using the read_csv() function. For example, in the following statement, names parameter is used to specify the labels for co...
Class XII Informatics Practices Informatics Practices 2 What are the other 97@96@88@67@99 parameters that can be used with read_csv() function? You may 2.5 P andas Series Vs N um Py ndarray explore from ...
Class XII Informatics Practices Informatics Practices 2 occupies lesser memory. S ummary • NumPy, Pandas and Matplotlib are Python libraries for scientific and analytical use. • pip install pandas is the...
Class XII Informatics Practices Informatics Practices 2 dictionary to create a DataFrame, keys of the Dictionary become the column labels of the DataFrame. A DataFrame can be thought of as a dictionary o...
Class XII Informatics Practices Informatics Practices 2 ‘o’ and ‘u’ and all the five values set to zero. Check if it is an empty series. c) Friends, from a dictionary having roll numbers of five of your ...
Class XII Informatics Practices Informatics Practices 2 7 from the Series MonthDays. b) Display the Series MonthDays in reverse order. 9. Create the following DataFrame Sales containing year wise sales f...
Class XII Informatics Practices Informatics Practices 2 of the salesperson Ankit to Vivaan and Madhu to Shailesh. j) Update the sale made by Shailesh in 2018 to 100000. k) Write the values of DataFrame S...
Class XII Informatics Practices Informatics Practices 3 C h a p t e r Data Handling using Pandas - II “We owe a lot to the Indians, who taught us how to count, without which no worthwhile scientific disc...
Class XII Informatics Practices Informatics Practices 3 19 15 24 23 Zuhaire 1 20 17 22 24 19 Zuhaire 2 23 15 21 25 15 Zuhaire 3 22 18 19 23 13 Aashravy 1 23 19 20 15 22 Aashravy 2 24 22 24 17 21 Aashravy...
Class XII Informatics Practices Informatics Practices 3 to calculate the maximum values from the DataFrame, regardless of its data types. The following statement outputs the maximum value of each column ...
Class XII Informatics Practices Informatics Practices 3 unit test among all the subjects Reprint 2026-27 D atH andling usPanda- II 67 >>> df.max(axis=1) N otes 0 22 1 24 2 24 3 24 4 25 5 23 6 23 7 24 8 2...
Class XII Informatics Practices Informatics Practices 3 18 Name == 'Mishti'].min() >>> print(dfMishti) S.St 20 Hindi 22 Eng 20 dtype: int64 Note: Since we did not want to output the min value of column U...
Class XII Informatics Practices Informatics Practices 3 int64 3.2.4 Calculating Number of Values DataFrame.count() will display the total number of values for each column or row of a DataFrame. To count ...
Class XII Informatics Practices Informatics Practices 3 print the relevant respectively. headings of the output. 3.2.6 Calculating Median DataFrame.Median() will display the middle value of the data. Thi...
Class XII Informatics Practices Informatics Practices 3 one student each got 21, 20, 15, 17 marks. 3.2.8 Calculating Quartile Dataframe.quantile() is used to get the quartiles. It will output the quartil...
Class XII Informatics Practices Informatics Practices 3 mean. Activity 3.4 >>> df[['Maths','Science','S. Find the variance and St','Hindi','Eng']].var() standard deviation of the following scores on an e...