Skip to main content
Ask a Question
Asked a question 6 months ago

Did anyone get error finding Mode in Day-7 assignment ? ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). import pandas as pd import matplotlib.pyplot as plt data=pd.read_csv('general_data.csv') masterData=pd.DataFrame(data) #Checking for NULLs masterData.isnull().any() nullExclued= masterData.dropna() df_mode=pd.Series(nullExclued[columns_to_consider].mode())

Fuel your ambition, discover your passion and achieve your professional goals with LetsUpgrade.
Sign Up Now

Related Questions

No related questions.

Question Stats

9 views
0 followers
Asked a question 6 months ago
Views this month