Skip to content

Commit b63252d

Browse files
committed
content/pandas: Misc updates for clarity
1 parent 6880b60 commit b63252d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/pandas.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ makes this easy::
402402
nobel["died"] = pd.to_datetime(nobel["died"], errors ='coerce')
403403
nobel["year"] = pd.to_datetime(nobel["year"], format="%Y")
404404

405-
Pandas knows a lot about dates (using :attr:`~pandas.Series.dt`)::
405+
Pandas knows a lot about dates (using :ref:`/user_guide/basics.rst#dt-accessor`)::
406406

407407
print(nobel["born"].dt.day)
408408
print(nobel["born"].dt.year)
@@ -439,7 +439,9 @@ Exercises 3
439439
Now more advanced steps:
440440

441441
- Now define an array of 4 countries of your choice and extract
442-
only laureates from these countries::
442+
only laureates from these countries (you need to look at the
443+
data and find how countries are written, and replace ``COUNTRY``
444+
with those strings)::
443445

444446
countries = np.array([COUNTRY1, COUNTRY2, COUNTRY3, COUNTRY4])
445447
subset = nobel.loc[nobel['bornCountry'].isin(countries)]

0 commit comments

Comments
 (0)