python count all units and sum all profits for each location in a dataframe
Added by Kevin S.
Step 1
Step 1: First, we need to import the necessary libraries such as pandas for working with dataframes. Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 98 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Akash M.
Using the video game sales dataset (https://www.kaggle.com/datasets/gregorut/videogamesales/), write a Python script using Pandas to calculate the total sales for each platform.
Lucas F.
Select an API of your choice. Make at least 10 requests to this API with different querying values. For example, you could look up the weather information for 10 different cities or the stock price information for 10 different companies. On each request, the API must return at least 5 pieces of information. E.g. if you are using a weather API, the API may return the max temperature, min temperature, rainfall amount, humidity, and UV index for each city. Store the values returned for each request in a pandas dataframe. That is, the data frame would have at least 5 columns (one for each category of data provided by the API) and at least 10 rows. Print the descriptive statistics for the data frame. Export the data frame to a CSV file.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD