Skip to content

Commit 9de416a

Browse files
committed
DOC: whatsnew typos
1 parent f9a552d commit 9de416a

File tree

1 file changed

+34
-36
lines changed

1 file changed

+34
-36
lines changed

doc/source/whatsnew/v0.21.0.txt

+34-36
Original file line numberDiff line numberDiff line change
@@ -134,72 +134,70 @@ Dtype Conversions
134134
^^^^^^^^^^^^^^^^^
135135

136136
- Previously assignments, ``.where()`` and ``.fillna()`` with a ``bool`` assignment, would coerce to
137-
same type (e.g. int / float), or raise for datetimelikes. These will now preseve the bools with ``object`` dtypes. (:issue:`16821`).
137+
same the type (e.g. int / float), or raise for datetimelikes. These will now preseve the bools with ``object`` dtypes. (:issue:`16821`).
138138

139-
.. ipython:: python
139+
.. ipython:: python
140140

141-
s = Series([1, 2, 3])
141+
s = Series([1, 2, 3])
142142

143-
.. code-block:: python
143+
.. code-block:: python
144144

145-
In [5]: s[1] = True
145+
In [5]: s[1] = True
146146

147-
In [6]: s
148-
Out[6]:
149-
0 1
150-
1 1
151-
2 3
152-
dtype: int64
147+
In [6]: s
148+
Out[6]:
149+
0 1
150+
1 1
151+
2 3
152+
dtype: int64
153153

154-
New Behavior
154+
New Behavior
155155

156-
.. ipython:: python
156+
.. ipython:: python
157157

158-
s[1] = True
159-
s
158+
s[1] = True
159+
s
160160

161-
- Previously as assignment to a datetimelike with a non-datetimelike would coerce the
161+
- Previously, as assignment to a datetimelike with a non-datetimelike would coerce the
162162
non-datetime-like item being assigned (:issue:`14145`).
163163

164-
.. ipython:: python
164+
.. ipython:: python
165165

166-
s = pd.Series([pd.Timestamp('2011-01-01'), pd.Timestamp('2012-01-01')])
166+
s = pd.Series([pd.Timestamp('2011-01-01'), pd.Timestamp('2012-01-01')])
167167

168-
.. code-block:: python
168+
.. code-block:: python
169169

170-
In [1]: s[1] = 1
170+
In [1]: s[1] = 1
171171

172-
In [2]: s
173-
Out[2]:
174-
0 2011-01-01 00:00:00.000000000
175-
1 1970-01-01 00:00:00.000000001
176-
dtype: datetime64[ns]
172+
In [2]: s
173+
Out[2]:
174+
0 2011-01-01 00:00:00.000000000
175+
1 1970-01-01 00:00:00.000000001
176+
dtype: datetime64[ns]
177177

178-
These now coerce to ``object`` dtype.
178+
These now coerce to ``object`` dtype.
179179

180-
.. ipython:: python
180+
.. ipython:: python
181181

182-
s[1] = 1
183-
s
182+
s[1] = 1
183+
s
184184

185-
- Additional bug fixes w.r.t. dtype conversions.
186-
187-
- Inconsistent behavior in ``.where()`` with datetimelikes which would raise rather than coerce to ``object`` (:issue:`16402`)
188-
- Bug in assignment against ``int64`` data with ``np.ndarray`` with ``float64`` dtype may keep ``int64`` dtype (:issue:`14001`)
185+
- Inconsistent behavior in ``.where()`` with datetimelikes which would raise rather than coerce to ``object`` (:issue:`16402`)
186+
- Bug in assignment against ``int64`` data with ``np.ndarray`` with ``float64`` dtype may keep ``int64`` dtype (:issue:`14001`)
189187

190188
.. _whatsnew_0210.api.na_changes:
191189

192190
NA naming Changes
193191
^^^^^^^^^^^^^^^^^
194192

195-
In orde to promote more consistency among the pandas API, we have added additional top-level
193+
In order to promote more consistency among the pandas API, we have added additional top-level
196194
functions :func:`isna` and :func:`notna` that are aliases for :func:`isnull` and :func:`notnull`.
197195
The naming scheme is now more consistent with methods like ``.dropna()`` and ``.fillna()``. Furthermore
198196
in all cases where ``.isnull()`` and ``.notnull()`` methods are defined, these have additional methods
199197
named ``.isna()`` and ``.notna()``, these are included for classes ``Categorical``,
200198
``Index``, ``Series``, and ``DataFrame``. (:issue:`15001`).
201199

202-
The configuration option ``mode.use_inf_as_null``is deprecated, and ``mode.use_inf_as_na`` is added as a replacement.
200+
The configuration option ``pd.options.mode.use_inf_as_null`` is deprecated, and ``pd.options.mode.use_inf_as_na`` is added as a replacement.
203201

204202
.. _whatsnew_0210.api:
205203

@@ -281,7 +279,7 @@ I/O
281279

282280
- Bug in :func:`read_csv` in which columns were not being thoroughly de-duplicated (:issue:`17060`)
283281
- Bug in :func:`read_csv` in which non integer values for the header argument generated an unhelpful / unrelated error message (:issue:`16338`)
284-
- Bug in :func:`read_csv` in which memory management issues in exception handling, under certain conditions, would cause the interpreter to segfault (:issue:`14696, :issue:`16798`).
282+
- Bug in :func:`read_csv` in which memory management issues in exception handling, under certain conditions, would cause the interpreter to segfault (:issue:`14696`, :issue:`16798`).
285283
- Bug in :func:`read_csv` when called with ``low_memory=False`` in which a CSV with at least one column > 2GB in size would incorrectly raise a ``MemoryError`` (:issue:`16798`).
286284
- Bug in :func:`read_stata` where value labels could not be read when using an iterator (:issue:`16923`)
287285
- Bug in :func:`read_html` where import check fails when run in multiple threads (:issue:`16928`)

0 commit comments

Comments
 (0)