Skip to content

Commit ba39df1

Browse files
Terji PetersenTerji Petersen
Terji Petersen
authored and
Terji Petersen
committed
double ticks
1 parent 42a12c6 commit ba39df1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/whatsnew/v2.0.0.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ When users don't specify indexes or columns when instantiating :class:`DataFrame
300300
objects, pandas infers the index type for them. Previously, if it was not possible to
301301
infer the index type from the data, pandas used to infer the index to be a :class:`RangeIndex`,
302302
except when the frame/series was empty, then the index was inferred to be an :class:`Index`
303-
with dtype `object`.
303+
with dtype ``object``.
304304

305305
This has been changed, so the type of index/columns will always be :class:`RangeIndex`,
306306
when users don't declare the index and it's not possible to infer the index type from the data (:issue:`49572`).
@@ -382,7 +382,7 @@ Other API changes
382382
- :func:`read_stata` with parameter ``index_col`` set to ``None`` (the default) will now set the index on the returned :class:`DataFrame` to a :class:`RangeIndex` instead of a :class:`Int64Index` (:issue:`49745`)
383383
- Changed behavior of :class:`Index` constructor with an object-dtype ``numpy.ndarray`` containing all-``bool`` values or all-complex values, this will now retain object dtype, consistent with the :class:`Series` behavior (:issue:`49594`)
384384
- Changed behavior of :meth:`DataFrame.shift` with ``axis=1``, an integer ``fill_value``, and homogeneous datetime-like dtype, this now fills new columns with integer dtypes instead of casting to datetimelike (:issue:`49842`)
385-
- Changed behavior of :func:`read_csv`, :func:`read_json` & :func:`read_fwf`, where the index will now always be a :class:`RangeIndex`, when no index is specified. Previously the index would be a :class:`Index` with dtype `object` if the new DataFrame/Series had length 0 (:issue:`49572`)
385+
- Changed behavior of :func:`read_csv`, :func:`read_json` & :func:`read_fwf`, where the index will now always be a :class:`RangeIndex`, when no index is specified. Previously the index would be a :class:`Index` with dtype ``object`` if the new DataFrame/Series had length 0 (:issue:`49572`)
386386
- :meth:`DataFrame.values`, :meth:`DataFrame.to_numpy`, :meth:`DataFrame.xs`, :meth:`DataFrame.reindex`, :meth:`DataFrame.fillna`, and :meth:`DataFrame.replace` no longer silently consolidate the underlying arrays; do ``df = df.copy()`` to ensure consolidation (:issue:`49356`)
387387
-
388388

0 commit comments

Comments
 (0)