Skip to content

Commit b771c37

Browse files
committed
DOC: small edits
1 parent 80e93bf commit b771c37

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

doc/source/computation.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,8 @@ sugar for applying the moving window operator to all of the DataFrame's columns:
282282

283283
.. ipython:: python
284284
285-
df = pd.DataFrame(np.random.randn(1000, 4), index=s.index,
285+
df = pd.DataFrame(np.random.randn(1000, 4),
286+
index=pd.date_range('1/1/2000', periods=1000),
286287
columns=['A', 'B', 'C', 'D'])
287288
df = df.cumsum()
288289

doc/source/whatsnew/v0.18.0.txt

+6-4
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Other API Changes
279279
^^^^^^^^^^^^^^^^^
280280

281281
- ``DataFrame.between_time`` and ``Series.between_time`` now only parse a fixed set of time strings. Parsing of
282-
date strings is no longer supported and raises a ``ValueError``. (:issue:`11818`)
282+
date strings is no longer supported and raises a ``ValueError``. (:issue:`11818`)
283283

284284
.. ipython:: python
285285

@@ -320,7 +320,8 @@ Deprecations
320320
In [1]: s = Series(range(3))
321321

322322
In [2]: pd.rolling_mean(s,window=2,min_periods=1)
323-
FutureWarning: pd.rolling_mean is deprecated for Series and will be removed in a future version, replace with
323+
FutureWarning: pd.rolling_mean is deprecated for Series and
324+
will be removed in a future version, replace with
324325
Series.rolling(min_periods=1,window=2,center=False).mean()
325326
Out[2]:
326327
0 0.0
@@ -329,7 +330,8 @@ Deprecations
329330
dtype: float64
330331

331332
In [3]: pd.rolling_cov(s, s, window=2)
332-
FutureWarning: pd.rolling_cov is deprecated for Series and will be removed in a future version, replace with
333+
FutureWarning: pd.rolling_cov is deprecated for Series and
334+
will be removed in a future version, replace with
333335
Series.rolling(window=2).cov(other=<Series>)
334336
Out[3]:
335337
0 NaN
@@ -405,7 +407,7 @@ Bug Fixes
405407

406408

407409

408-
- Bug in subclasses of `DataFrame` where `AttributeError` did not propagate (:issue:`11808`)
410+
- Bug in subclasses of ``DataFrame`` where ``AttributeError`` did not propagate (:issue:`11808`)
409411
- Bug groupby on tz-aware data where selection not returning ``Timestamp`` (:issue:`11616`)
410412
- Bug in ``pd.read_clipboard`` and ``pd.to_clipboard`` functions not supporting Unicode; upgrade included ``pyperclip`` to v1.5.15 (:issue:`9263`)
411413

0 commit comments

Comments
 (0)