You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The display of floating precision in a dataframe and serie could be improved in the presence of np.inf.
My expectation would be that np.inf would induce the same behavior than 'NaN.
Expected Output
0 1.0
1 2.2
2 inf
dtype: float64
Instead, the following result is obtained:
0 1.000000
1 2.200000
2 inf
dtype: float64
Note that this is the result in presence of a NaN:
Makes sense - investigation and PRs would certainly be welcome
jorisvandenbossche
changed the title
Displayed prevision of float in presence of np.inf
Displayed precision of float in presence of np.inf
Jan 22, 2019
Code Sample, a copy-pastable example if possible
Problem description
The display of floating precision in a dataframe and serie could be improved in the presence of
np.inf
.My expectation would be that
np.inf
would induce the same behavior than'NaN
.Expected Output
Instead, the following result is obtained:
Note that this is the result in presence of a
NaN
:Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: