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

11 BE A

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 »

4. Write code statements for a dataframe df for the following :

sa 11 ip chapter 11 / PythonCSIP CS IP

4. Write code statements for a dataframe df for the following : Read More »

Post pagination
← Previous 1 … 3 4 5 6 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.