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,
97
+
or purely non-negative, integers. Previously, handling these integers would
98
+
result in improper rounding or data-type casting, leading to incorrect results.
99
+
Notably, a new numerical index, ``UInt64Index``, has been created (:issue:`14937`)
100
+
101
+
.. ipython:: python
102
+
103
+
idx = pd.UInt64Index([1, 2, 3])
104
+
df = pd.DataFrame(['a', 'b', 'c'], index=idx)
105
+
df.index
106
+
107
+
- Bug in converting object elements of array-like objects to unsigned 64-bit integers (:issue:`4471`, :issue:`14982`)
108
+
- Bug in ``Series.unique()`` in which unsigned 64-bit integers were causing overflow (:issue:`14721`)
109
+
- Bug in ``DataFrame`` construction in which unsigned 64-bit integer elements were being converted to objects (:issue:`14881`)
110
+
- Bug in ``pd.read_csv()`` in which unsigned 64-bit integer elements were being improperly converted to the wrong data types (:issue:`14983`)
111
+
- Bug in ``pd.unique()`` in which unsigned 64-bit integers were causing overflow (:issue:`14915`)
112
+
94
113
.. _whatsnew_0200.enhancements.other:
95
114
96
115
Other enhancements
@@ -298,8 +317,6 @@ Bug Fixes
298
317
299
318
- Bug in ``Index`` power operations with reversed operands (:issue:`14973`)
300
319
- Bug in ``TimedeltaIndex`` addition where overflow was being allowed without error (:issue:`14816`)
301
-
- Bug in ``DataFrame`` construction in which unsigned 64-bit integer elements were being converted to objects (:issue:`14881`)
302
-
- Bug in ``pd.read_csv()`` in which unsigned 64-bit integer elements were being improperly converted to the wrong data types (:issue:`14983`)
303
320
- Bug in ``astype()`` where ``inf`` values were incorrectly converted to integers. Now raises error now with ``astype()`` for Series and DataFrames (:issue:`14265`)
304
321
- Bug in ``DataFrame(..).apply(to_numeric)`` when values are of type decimal.Decimal. (:issue:`14827`)
305
322
- Bug in ``describe()`` when passing a numpy array which does not contain the median to the ``percentiles`` keyword argument (:issue:`14908`)
@@ -324,8 +341,6 @@ Bug Fixes
324
341
325
342
326
343
327
-
- Bug in ``Series.unique()`` in which unsigned 64-bit integers were causing overflow (:issue:`14721`)
328
-
- Bug in ``pd.unique()`` in which unsigned 64-bit integers were causing overflow (:issue:`14915`)
329
344
330
345
331
346
@@ -350,7 +365,6 @@ Bug Fixes
350
365
351
366
352
367
- Require at least 0.23 version of cython to avoid problems with character encodings (:issue:`14699`)
353
-
- Bug in converting object elements of array-like objects to unsigned 64-bit integers (:issue:`4471`, :issue:`14982`)
354
368
- Bug in ``pd.pivot_table()`` where no error was raised when values argument was not in the columns (:issue:`14938`)
355
369
- Bug in ``.to_json()`` where ``lines=True`` and contents (keys or values) contain escaped characters (:issue:`15096`)
0 commit comments