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
<spanclass="badge badge-info">To user guide</span>
227
227
228
-
For a complete overview of the input and output possibilites from and to pandas, see the user guide section about :ref:`reader and writer functions <io>`.
228
+
For a complete overview of the input and output possibilities from and to pandas, see the user guide section about :ref:`reader and writer functions <io>`.
Copy file name to clipboardExpand all lines: doc/source/getting_started/intro_tutorials/03_subset_data.rst
+2-2
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ name of the column of interest.
88
88
</ul>
89
89
90
90
Each column in a :class:`DataFrame` is a :class:`Series`. As a single column is
91
-
selected, the returned object is a pandas :class:`DataFrame`. We can verify this
91
+
selected, the returned object is a pandas :class:`Series`. We can verify this
92
92
by checking the type of the output:
93
93
94
94
.. ipython:: python
@@ -101,7 +101,7 @@ And have a look at the ``shape`` of the output:
101
101
102
102
titanic["Age"].shape
103
103
104
-
:attr:`DataFrame.shape` is an attribute (remember :ref:`tutorial on reading and writing <10min_tut_02_read_write>`, do not use parantheses for attributes) of a
104
+
:attr:`DataFrame.shape` is an attribute (remember :ref:`tutorial on reading and writing <10min_tut_02_read_write>`, do not use parentheses for attributes) of a
105
105
pandas ``Series`` and ``DataFrame`` containing the number of rows and
106
106
columns: *(nrows, ncolumns)*. A pandas Series is 1-dimensional and only
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.24.0.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -397,7 +397,7 @@ Other enhancements
397
397
- :func:`~DataFrame.to_csv`, :func:`~Series.to_csv`, :func:`~DataFrame.to_json`, and :func:`~Series.to_json` now support ``compression='infer'`` to infer compression based on filename extension (:issue:`15008`).
398
398
The default compression for ``to_csv``, ``to_json``, and ``to_pickle`` methods has been updated to ``'infer'`` (:issue:`22004`).
399
399
- :meth:`DataFrame.to_sql` now supports writing ``TIMESTAMP WITH TIME ZONE`` types for supported databases. For databases that don't support timezones, datetime data will be stored as timezone unaware local timestamps. See the :ref:`io.sql_datetime_data` for implications (:issue:`9086`).
400
-
- :func:`to_timedelta` now supports iso-formated timedelta strings (:issue:`21877`)
400
+
- :func:`to_timedelta` now supports iso-formatted timedelta strings (:issue:`21877`)
401
401
- :class:`Series` and :class:`DataFrame` now support :class:`Iterable` objects in the constructor (:issue:`2193`)
402
402
- :class:`DatetimeIndex` has gained the :attr:`DatetimeIndex.timetz` attribute. This returns the local time with timezone information. (:issue:`21358`)
403
403
- :meth:`~Timestamp.round`, :meth:`~Timestamp.ceil`, and :meth:`~Timestamp.floor` for :class:`DatetimeIndex` and :class:`Timestamp`
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v1.0.1.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Fixed regressions
16
16
~~~~~~~~~~~~~~~~~
17
17
18
18
- Fixed regression in :class:`DataFrame` setting values with a slice (e.g. ``df[-4:] = 1``) indexing by label instead of position (:issue:`31469`)
19
-
- Fixed regression when indexing a ``Series`` or ``DataFrame`` indexed by ``DatetimeIndex`` with a slice containg a :class:`datetime.date` (:issue:`31501`)
19
+
- Fixed regression when indexing a ``Series`` or ``DataFrame`` indexed by ``DatetimeIndex`` with a slice containing a :class:`datetime.date` (:issue:`31501`)
20
20
- Fixed regression in ``DataFrame.__setitem__`` raising an ``AttributeError`` with a :class:`MultiIndex` and a non-monotonic indexer (:issue:`31449`)
21
21
- Fixed regression in :class:`Series` multiplication when multiplying a numeric :class:`Series` with >10000 elements with a timedelta-like scalar (:issue:`31457`)
22
22
- Fixed regression in ``.groupby().agg()`` raising an ``AssertionError`` for some reductions like ``min`` on object-dtype columns (:issue:`31522`)
- Bug in :meth:`Series.loc` and :meth:`DataFrame.loc` when indexing with an integer key on a object-dtype :class:`Index` that is not all-integers (:issue:`31905`)
304
308
- Bug in :meth:`DataFrame.iloc.__setitem__` on a :class:`DataFrame` with duplicate columns incorrectly setting values for all matching columns (:issue:`15686`, :issue:`22036`)
305
309
- Bug in :meth:`DataFrame.loc:` and :meth:`Series.loc` with a :class:`DatetimeIndex`, :class:`TimedeltaIndex`, or :class:`PeriodIndex` incorrectly allowing lookups of non-matching datetime-like dtypes (:issue:`32650`)
310
+
- Bug in :meth:`Series.__getitem__` indexing with non-standard scalars, e.g. ``np.dtype`` (:issue:`32684`)
306
311
307
312
Missing
308
313
^^^^^^^
@@ -334,18 +339,21 @@ MultiIndex
334
339
335
340
I/O
336
341
^^^
337
-
- Bug in :meth:`read_json` where integer overflow was occuring when json contains big number strings. (:issue:`30320`)
342
+
- Bug in :meth:`read_json` where integer overflow was occurring when json contains big number strings. (:issue:`30320`)
338
343
- `read_csv` will now raise a ``ValueError`` when the arguments `header` and `prefix` both are not `None`. (:issue:`27394`)
339
344
- Bug in :meth:`DataFrame.to_json` was raising ``NotFoundError`` when ``path_or_buf`` was an S3 URI (:issue:`28375`)
340
345
- Bug in :meth:`DataFrame.to_parquet` overwriting pyarrow's default for
341
346
``coerce_timestamps``; following pyarrow's default allows writing nanosecond
342
347
timestamps with ``version="2.0"`` (:issue:`31652`).
343
348
- Bug in :meth:`read_csv` was raising `TypeError` when `sep=None` was used in combination with `comment` keyword (:issue:`31396`)
344
349
- Bug in :class:`HDFStore` that caused it to set to ``int64`` the dtype of a ``datetime64`` column when reading a DataFrame in Python 3 from fixed format written in Python 2 (:issue:`31750`)
350
+
- Bug in :meth:`DataFrame.to_json` where ``Timedelta`` objects would not be serialized correctly with ``date_format="iso"`` (:issue:`28256`)
345
351
- :func:`read_csv` will raise a ``ValueError`` when the column names passed in `parse_dates` are missing in the Dataframe (:issue:`31251`)
346
352
- Bug in :meth:`read_excel` where a UTF-8 string with a high surrogate would cause a segmentation violation (:issue:`23809`)
347
353
- Bug in :meth:`read_csv` was causing a file descriptor leak on an empty file (:issue:`31488`)
348
354
- Bug in :meth:`read_csv` was causing a segfault when there were blank lines between the header and data rows (:issue:`28071`)
355
+
- Bug in :meth:`read_csv` was raising a misleading exception on a permissions issue (:issue:`23784`)
356
+
- Bug in :meth:`read_csv` was raising an ``IndexError`` when header=None and 2 extra data columns
349
357
350
358
351
359
Plotting
@@ -377,7 +385,7 @@ Reshaping
377
385
- :meth:`DataFrame.replace` and :meth:`Series.replace` will raise a ``TypeError`` if ``to_replace`` is not an expected type. Previously the ``replace`` would fail silently (:issue:`18634`)
378
386
- Bug in :meth:`DataFrame.apply` where callback was called with :class:`Series` parameter even though ``raw=True`` requested. (:issue:`32423`)
379
387
- Bug in :meth:`DataFrame.pivot_table` losing timezone information when creating a :class:`MultiIndex` level from a column with timezone-aware dtype (:issue:`32558`)
380
-
388
+
- :meth:`DataFrame.agg` now provides more descriptive ``SpecificationError`` message when attempting to aggregating non-existant column (:issue:`32755`)
381
389
382
390
Sparse
383
391
^^^^^^
@@ -402,6 +410,8 @@ Other
402
410
- Fixed :func:`pandas.testing.assert_series_equal` to correctly raise if left object is a different subclass with ``check_series_type=True`` (:issue:`32670`).
403
411
- :meth:`IntegerArray.astype` now supports ``datetime64`` dtype (:issue:32538`)
404
412
- Fixed bug in :func:`pandas.testing.assert_series_equal` where dtypes were checked for ``Interval`` and ``ExtensionArray`` operands when ``check_dtype`` was ``False`` (:issue:`32747`)
413
+
- Bug in :meth:`Series.map` not raising on invalid ``na_action`` (:issue:`32815`)
414
+
- Bug in :meth:`DataFrame.__dir__` caused a segfault when using unicode surrogates in a column name (:issue:`25509`)
0 commit comments