des_table = df_final_S1415.describe(percentiles=[.05, .25, .5, .75, .95 ]).T
In version 18.0 describe function will return percentiles when columns contain nan.
pd.show_versions()
But in version 18.1 describe function will not return percentiles when columns contain nan.
@tade0726 Can you please show a reproducible example? (some code that constructs a dataframe that shows the problem)
Here is a reproducible example (the actual issue is in the quantile
method):
In [24]: s = pd.Series(range(5))
In [25]: s.quantile(0.5)
Out[25]: 2.0
In [26]: s[0] = np.nan
In [27]: s.quantile(0.5)
Out[27]: nan
In [28]: pd.__version__
Out[28]: '0.18.1+20.gaf7bdd3'
And it is a duplicate of https://github.com/pydata/pandas/issues/13098
Thanks for reporting
Most helpful comment
Here is a reproducible example (the actual issue is in the
quantile
method):