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
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.19.0.txt
+23-5
Original file line number
Diff line number
Diff line change
@@ -307,6 +307,29 @@ Google BigQuery Enhancements
307
307
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
308
308
- The :func:`pandas.io.gbq.read_gbq` method has gained the ``dialect`` argument to allow users to specify whether to use BigQuery's legacy SQL or BigQuery's standard SQL. See the :ref:`docs <io.bigquery_reader>` for more details (:issue:`13615`).
309
309
310
+
.. _whatsnew_0190.sparse:
311
+
312
+
Sparse changes
313
+
~~~~~~~~~~~~~~
314
+
315
+
These changes allow pandas to handle sparse data with more dtypes, and for work to make a smoother experience with data handling.
316
+
317
+
- Sparse data structure now can preserve ``dtype`` after arithmetic ops (:issue:`13848`)
318
+
319
+
.. ipython:: python
320
+
321
+
s = pd.SparseSeries([0, 2, 0, 1], fill_value=0, dtype=np.int64)
322
+
s.dtype
323
+
324
+
s + 1
325
+
326
+
327
+
- Bug in ``SparseSeries`` with ``MultiIndex`` ``[]`` indexing may raise ``IndexError`` (:issue:`13144`)
328
+
- Bug in ``SparseSeries`` with ``MultiIndex`` ``[]`` indexing result may have normal ``Index`` (:issue:`13144`)
329
+
- Bug in ``SparseDataFrame`` in which ``axis=None`` did not default to ``axis=0`` (:issue:`13048`)
330
+
- Bug in ``SparseSeries`` and ``SparseDataFrame`` creation with ``object`` dtype may raise ``TypeError`` (:issue:`11633`)
331
+
- Bug in ``SparseDataFrame`` doesn't respect passed ``SparseArray`` or ``SparseSeries`` 's dtype and ``fill_value`` (:issue:`13866`)
332
+
310
333
.. _whatsnew_0190.enhancements.other:
311
334
312
335
Other enhancements
@@ -754,11 +777,6 @@ Bug Fixes
754
777
- Bug in ``groupby().shift()``, which could cause a segfault or corruption in rare circumstances when grouping by columns with missing values (:issue:`13813`)
755
778
- Bug in ``pd.read_csv()``, which may cause a segfault or corruption when iterating in large chunks over a stream/file under rare circumstances (:issue:`13703`)
756
779
- Bug in ``io.json.json_normalize()``, where non-ascii keys raised an exception (:issue:`13213`)
757
-
- Bug in ``SparseSeries`` with ``MultiIndex`` ``[]`` indexing may raise ``IndexError`` (:issue:`13144`)
758
-
- Bug in ``SparseSeries`` with ``MultiIndex`` ``[]`` indexing result may have normal ``Index`` (:issue:`13144`)
759
-
- Bug in ``SparseDataFrame`` in which ``axis=None`` did not default to ``axis=0`` (:issue:`13048`)
760
-
- Bug in ``SparseSeries`` and ``SparseDataFrame`` creation with ``object`` dtype may raise ``TypeError`` (:issue:`11633`)
761
-
- Bug in ``SparseDataFrame`` doesn't respect passed ``SparseArray`` or ``SparseSeries`` 's dtype and ``fill_value`` (:issue:`13866`)
762
780
- Bug when passing a not-default-indexed ``Series`` as ``xerr`` or ``yerr`` in ``.plot()`` (:issue:`11858`)
763
781
- Bug in matplotlib ``AutoDataFormatter``; this restores the second scaled formatting and re-adds micro-second scaled formatting (:issue:`13131`)
764
782
- Bug in selection from a ``HDFStore`` with a fixed format and ``start`` and/or ``stop`` specified will now return the selected range (:issue:`8287`)
0 commit comments