Python Data Analysis Test Guide
Python Data Analysis Test Guide
Read the entire document before starting the individual development, to ensure you have
the maximum score and focus efforts properly.
Prerequisites
1. To fulfill the request, you must create the classicmodels database in your engine.
PostgreSQL. For this, open a terminal window and execute the following
instruction:
[Link] the database is created, you must import the [Link] this
database.
Description
The commercial area of a company requests to close the year of sales, both for
review if the goals were met, so that we can plan for the next year. For this,
they will consider the data from the dataset [Link] to answer some questions,
carrying out the following tasks.
2. Perform the merge between the DataFrames, making sure to use the correct one.
parameter validate to ensure referential integrity.
_ 1
[Link]fi[Link]
3. Add the following columns, considering their name and the associated formula.
sale:quantityOrdered*priceEach
costquantityOrdered*buyPrice
considering the previous columns
4. What was the total sales by product line? Include a total row.
6. Are there any customers who haven't made any purchases yet? How many are there?
What were the 10 clients that reported the highest gross sales in money during
the year 2005? Generate a DataFrame and save it in a Postgre table called
top_10_clients_2005the client's name and their
corresponding sale, cost and profit.
What were the top 10 best-selling items during the year 2005 (considering
net amount)? Generate a DataFrame and save it in a Postgre table called
top 10 products 2005, specifying the name of the product and its
corresponding sale, cost, and profit.
At this point, you should apply the DRY principle, so functions should be used to
perform filtering by dates, generate pivot tables and write table in Postgre. The functions
They must be in a separate file called [Link] and imported into Jupyter.
Notebook. This file should include:
_ 2
[Link]fi[Link]
Requirements
Within the Jupyter Notebook file, you must execute the following actions and
explain what you are doing:
Much success!
_ 3
[Link]