Question: 1 . Create and populate a CSV file named phone _ sales.csv . The file should have 5 0 0 rows and include the
Create and populate a CSV file named "phonesales.csv The file should have rows and include the following columns:
PhoneName: The name of the phone sold, eg iPhone Samsung Galaxy S etc.
Contract: The months the contract was taken for, eg or
Account UpToDate: Yes if the account is up to date, otherwise No
Load the file into a Pandas DataFrame named salesdf
Create a Dash application with the following components:
Tab should contain:
a A bold and centred heading: Accounts
b A dropdown menu to select a phone The phone names should be in alphabetical order
c Radio buttons are used to select the month for the contract The radio buttons should be one after another and in ascending order
d A bar graph showing whether the number of accounts up to date or not based on the information from the dropdown menu and radio buttons.
Tab should contain:
a A bold and centred heading: Phone Contracts.
b A multibar chart to visualise the number of contracts taken per phone per contract month.
c Customise the graph so that when you hover over each bar, the phone name, the number sold and the contract months appear, egSamsung Galaxy S month
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
