File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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)]
You can’t perform that action at this time.
0 commit comments