Resolving FutureWarning
Change : Used only numeric values to calculate the Total column, instead of considering all values
Issue : Under the "5. Add total column" section of the Area-Plots-Histograms-and-Bar-Charts notebook , all values were considered for calculation of the total column.
Error mssg ==> FutureWarning: Dropping of nuisance columns in DataFrame reductions (with 'numeric_only=None') is deprecated; in a future version this will raise TypeError. Select only valid columns before calling the reduction. df_can['Total'] = df_can.sum(axis=1)
Change : Used only numeric values to calculate the Total column, instead of considering all values
Issue : Under the "5. Add total column" section of the Area-Plots-Histograms-and-Bar-Charts notebook , all values were considered for calculation of the total column.
Error mssg ==> FutureWarning: Dropping of nuisance columns in DataFrame reductions (with 'numeric_only=None') is deprecated; in a future version this will raise TypeError. Select only valid columns before calling the reduction. df_can['Total'] = df_can.sum(axis=1)
To see the changes, add .patch to the end of the url (stackoverflow)