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
Pandas has significantly improved support for operations involving unsigned,
94
+
or purely non-negative, integers. Previously, handling these integers would
95
+
result in improper rounding or data-type casting, leading to incorrect results.
96
+
Notably, a new numerical index, `UInt64Index`, has been created (:issue:`14937`)
97
+
98
+
.. ipython:: python
99
+
100
+
idx = pd.UInt64Index([1, 2, 3])
101
+
df = pd.DataFrame(['a', 'b', 'c'], index=idx)
102
+
df.index
103
+
104
+
- Bug in converting object elements of array-like objects to unsigned 64-bit integers (:issue:`4471`)
105
+
- Bug in ``Series.unique()`` in which unsigned 64-bit integers were causing overflow (:issue:`14721`)
106
+
- Bug in ``DataFrame`` construction in which unsigned 64-bit integer elements were being converted to objects (:issue:`14881`)
107
+
- Bug in ``pd.unique()`` in which unsigned 64-bit integers were causing overflow (:issue:`14915`)
108
+
91
109
.. _whatsnew_0200.enhancements.other:
92
110
93
111
Other enhancements
@@ -279,7 +297,6 @@ Bug Fixes
279
297
~~~~~~~~~
280
298
281
299
- Bug in ``TimedeltaIndex`` addition where overflow was being allowed without error (:issue:`14816`)
282
-
- Bug in ``DataFrame`` construction in which unsigned 64-bit integer elements were being converted to objects (:issue:`14881`)
283
300
- Bug in ``astype()`` where ``inf`` values were incorrectly converted to integers. Now raises error now with ``astype()`` for Series and DataFrames (:issue:`14265`)
284
301
- Bug in ``DataFrame(..).apply(to_numeric)`` when values are of type decimal.Decimal. (:issue:`14827`)
285
302
- Bug in ``describe()`` when passing a numpy array which does not contain the median to the ``percentiles`` keyword argument (:issue:`14908`)
@@ -299,8 +316,6 @@ Bug Fixes
299
316
300
317
301
318
302
-
- Bug in ``Series.unique()`` in which unsigned 64-bit integers were causing overflow (:issue:`14721`)
303
-
- Bug in ``pd.unique()`` in which unsigned 64-bit integers were causing overflow (:issue:`14915`)
304
319
305
320
306
321
@@ -316,5 +331,4 @@ Bug Fixes
316
331
317
332
318
333
- Require at least 0.23 version of cython to avoid problems with character encodings (:issue:`14699`)
319
-
- Bug in converting object elements of array-like objects to unsigned 64-bit integers (:issue:`4471`)
320
334
- Bug in ``pd.pivot_table()`` where no error was raised when values argument was not in the columns (:issue:`14938`)
0 commit comments