pandas_exercises
pandas_exercises copied to clipboard
Practice your pandas skills!
From step12 to 14, it asked to downsample the record to a yearly/monthly/weekly frequency for each location. The provided solution is like below: `data.groupby(data.index.to_period('A')).mean()` I think it would be simpler...
In 02-Filtering_and_Sorting/Chipotle, step 4 and 5, - Solution doesn't consider items which do not have a 'quantity'==1 in the data - They can be extracted by `chipo['item_price'] = chipo['item_price']/chipo['quantity']` `chipo['quantity']...
Hi, thanks for the exercises provided. Very helpful. I think the result for 06_Stats/Wind_Stats/Step 8 is incorrect. Believe we should skip NA when calculate the mean value, but the default...
In step 10, we want to multiply all numerical values by 10. The provided solution is: `df.applymap(times10).head(10)` But this is very slow, because it runs a regular python function on...
Steps 4 and 5 assume that each price has a unique price. However, chipo[(chipo['item_name'] == 'Chicken Bowl') & (chipo['quantity'] == 1)].item_price.unique() returns array([10.98, 11.25, 8.75, 8.49, 8.19, 10.58, 8.5 ])...
Hi, 03_Grouping/Alcohol_Consumption/Exercise_with_solutions.ipynb error in ### Step 6. Print the mean alcohol consumption per continent for every column i thought something wrong in my own code. but then i opened and...
1. desaster -> disaster? https://github.com/guipsamora/pandas_exercises/tree/master/07_Visualization/Titanic_Desaster 2. % matplolib inline -> %matplotlib inline https://github.com/guipsamora/pandas_exercises/blob/master/07_Visualization/Tips/Exercises_with_code_and_solutions.ipynb 3. step 2 address is not raw.githubusercontent.com as it was before but just github.com so it gives...
When click on [Occupation Exercises Video Tutoria](https://youtu.be/jL3EVCoYIJQ) it says video is private. Would really love to watch the walkthrough of the solution. Thank you.
Hi, First I wanted to say thank you for these notebooks, it's been great learning from them. For Step 8. For each occupation present the percentage of women and men:...