Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started