Skip to content

Commit 8da2376

Browse files
committed
Review datapythonista for file comparison_with_sas.rst
Signed-off-by: Fabian Haase <[email protected]>
1 parent 92862c5 commit 8da2376

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/source/comparison_with_sas.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ The pandas method is :func:`read_csv`, which works similarly.
129129

130130
.. ipython:: python
131131
132-
url = 'https://raw.github.com/pandas-dev/pandas/master/pandas/tests/data/tips.csv' # noqa: E501
132+
url = 'https://raw.github.com/pandas-dev/' \
133+
'pandas/master/pandas/tests/data/tips.csv'
133134
tips = pd.read_csv(url)
134135
tips.head()
135136
@@ -287,8 +288,8 @@ see the :ref:`timeseries documentation<timeseries>` for more details.
287288
tips['date1_year'] = tips['date1'].dt.year
288289
tips['date2_month'] = tips['date2'].dt.month
289290
tips['date1_next'] = tips['date1'] + pd.offsets.MonthBegin()
290-
tips['months_between'] = tips['date2'].dt.to_period('M') - \
291-
tips['date1'].dt.to_period('M')
291+
tips['months_between'] = (
292+
tips['date2'].dt.to_period('M') - tips['date1'].dt.to_period('M'))
292293
293294
tips[['date1', 'date2', 'date1_year', 'date2_month',
294295
'date1_next', 'months_between']].head()

0 commit comments

Comments
 (0)