reneshbedre / bioinfokit

Bioinformatics data analysis and visualization toolkit
MIT License
333 stars 77 forks source link

updated pandas mean calculation for new mean() numeric_only default value in pandas 1.5.0 #68

Open victormvy opened 11 months ago

victormvy commented 11 months ago

Pandas changed the behaviour of the numeric_only argument of the pandas.DataFrame.mean in v1.5.0. Prior to that version, the default behaviour was to try to compute the mean in all the columns and then try only in numeric columns. Now, it tries to compute the mean using all the columns and raises an error if not numeric columns are found.

The code has been modified to compute the mean only in the required numeric columns.

amphioxus commented 6 months ago

Thanks! This helped me get some old code that uses tukey_hsd() to run again.