Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Episode 5 outdated #492

Open
dafnevk opened this issue Apr 14, 2021 · 0 comments
Open

Episode 5 outdated #492

dafnevk opened this issue Apr 14, 2021 · 0 comments

Comments

@dafnevk
Copy link

dafnevk commented Apr 14, 2021

In episode 5, the first few rows of the surveys.csv table show as:

       record_id  month  day  year  plot species  sex  hindfoot_length weight
0              1      7   16  1977     2      NA    M               32  NaN
1              2      7   16  1977     3      NA    M               33  NaN
2              3      7   16  1977     2      DM    F               37  NaN
3              4      7   16  1977     7      DM    M               36  NaN
4              5      7   16  1977     3      DM    M               35  NaN

Could it be that this an outdated version of the dataset and that NA species are now replaced with NL? That means the first line of code:

surveys_df = pd.read_csv("data/surveys.csv",
                         keep_default_na=False, na_values=[""])

Can be shortened to:

surveys_df = pd.read_csv("data/surveys.csv")

(as in the other episodes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant