LibraryCarpentry / library-python

Python for Librarians
https://librarycarpentry.github.io/library-python/
Other
21 stars 17 forks source link

Episode 02-index-slice-subset #11

Closed brendam closed 8 years ago

brendam commented 8 years ago

I'm not sure what the second last challenge is meant to do:

Create a new DataFrame that only contains observations with Language values that are English or French. Assign each language value in the new DataFrame to a new value of x. Determine the number of null values in the subset.

What does "Assign each language value in the new DataFrame to a new value of x" mean?

mkuzak commented 8 years ago

@c-martinez can you comment on that?

c-martinez commented 8 years ago

The original challenge, Assign each sex value in the new DataFrame to a new value of 'x'. As I understand it, the spirit of the original challenge is to be able to determine how many males, females and undecided there are in the data set.

For the library lesson, I don't think there are any undecided languages, so I was not very sure what should the challenge aim for. Perhaps just the number of articles for each language? In either case, this should be rephrased.

c-martinez commented 8 years ago

Just updated the challenges. @brendam, do you think they are better this way?

brendam commented 8 years ago

yes, that looks like it will work, thanks.

mkuzak commented 8 years ago

solved by c12318ac31070ad8a2a7b26ca26bfb5a7ef31645