1. Recap of the rescue
Congratulations! You found that Freddy Frequentist kidnapped Bayes the Golden Retriever and was hiding him at the Shady Groves Campsite.
2. You did it!
Bayes was safely returned to his DataCamp family. Now that you've solved the mystery of Bayes' kidnapping, let's recap what you've learned.
3. Modules and variables
First, you learned about modules. Modules help group together related tools in Python. You can use a module by importing it at the top of a script file, before writing any other code.
You also learned about variables as you filled out Bayes' missing puppy report. Variables store data. Two common types of variables are strings (which represent text like Bayes' fur color) and floats (which represent numbers like Bayes' age).
4. Using functions
Next, you learned about functions. Functions are like machines that turn inputs into outputs. They can take positional arguments, which must come in a specific order, or keyword arguments, which come at the end and can go in any order. You used a license plate lookup function to get your first list of suspects.
5. Working with tabular data
You narrowed your list of suspects by using Pandas to examine credit card records. Pandas is a module that uses tools like DataFrames to examine and modify tabular data. You investigated the credit reports using functions like head and info, and selected specific rows that corresponded to suspicious purchases using logic.
6. Creating line plots
After narrowing the suspect pool down to two people, you collected handwriting samples and analyzed them using line plots. Matplotlib is a module for creating charts and visualizations. You used the plt-dot-plot function to create line plots and used keyword arguments to modify the color and linestyle of your plot. You used functions like plt-dot-legend and plt-dot-title to add annotations to your line plots.
Line plots of the handwriting samples helped you learn that Freddy Frequentist was the kidnapper.
7. More plot types
You learned to create several other plot types using matplotlib. You used a scatter plot to investigate cell phone data and narrow Freddy's location to three possible campsites. You used bar charts to track how Officer Deshaun and his friends used their time to solve the mystery.
Finally, you used a histogram to investigate the distribution of gravel radii on Freddy's shoeprint. This helped you determine that Bayes was being kept at the Shady Groves Campsite.
8. Great job!
You learned a lot while solving this mystery. Now that you're familiar with the basics of data analysis in Python, you can start learning other skills like machine learning or data visualization. Good luck!