Data_visualization icon indicating copy to clipboard operation
Data_visualization copied to clipboard

Resolving FutureWarning

Open aryan1113 opened this issue 3 years ago • 1 comments

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)

aryan1113 avatar Oct 07 '22 12:10 aryan1113

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)

aryan1113 avatar Oct 07 '22 12:10 aryan1113