Practical Exercises for Chapter 1
Exercise 1: Define a Data Analysis Problem
- Objective: To exercise your ability to frame a problem suitable for data analysis.
- Task: Write down a problem statement or question that you would like to solve using data analysis. Be as specific as possible.
- Hint: Examples of problem statements could be "What is the average age of customers who purchased a particular product?" or "How do temperature changes affect electricity consumption?"
Exercise 2: Data Collection with Python
- Objective: Familiarize yourself with Python's capabilities for data collection.
- Task: Use Python's requests library to fetch data from an open API of your choice.
- Hint: Make sure to check the API's documentation for usage guidelines.
# Starter Code
import requests
response = requests.get("<https://api.example.com/your_endpoint>")
print(response.json())
Exercise 3: Basic Data Cleaning with Pandas
- Objective...