Skip to content
Pooja Bhatia Classes Hari Nagar
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
Pooja Bhatia Classes Hari Nagar

sa 11 ip chapter 11

6. Write code that just produces single True/False as a result for the presence of missing values in whole dataframe namely df.

sa 11 ip chapter 11 / PythonCSIP CS IP

6. Write code that just produces single True/False as a result for the presence of missing values in whole dataframe namely df. Read More »

5. Give two identical dataframes Salesl6 and Salesl7. But Salesl7 has some values missing. Write code so that Salesl7 fills its missing values from corresponding entries of Salesl6.

sa 11 ip chapter 11 / PythonCSIP CS IP

import pandas as pd, numpy as np Sales16 = pd.DataFrame({‘revenue’: [100, 200, 250, 275, 300, 350]}) Sales17 = pd.DataFrame({‘revenue’: [100, 200, np.nan, 275, np.nan, 350]}) print(Sales17.combine_first(Sales16)) # combine_first used to fill the missing values of Sales17 with the corresponding values of Sales16

5. Give two identical dataframes Salesl6 and Salesl7. But Salesl7 has some values missing. Write code so that Salesl7 fills its missing values from corresponding entries of Salesl6. Read More »

Post pagination
← Previous 1 … 13 14 15 … 23 Next →
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
  • We teach following classes
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship

Copyright © 2025 Pooja Bhatia Classes Hari Nagar | Powered by Pooja Bhatia Classes Hari Nagar.