Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python EDA Missing Values You are provided with a CSV file named sales _ data _ missing.csv containing detailed sales information. Your task is to:
Python EDA Missing Values
You are provided with a CSV file named salesdatamissing.csv containing detailed sales information. Your task is to:
Replace missing values in the promotionid column with No Promotion string.
Calculate the total sales for a specific productid in a given month. Add a column for each month's total sales to the dataset. There are only two months present in the dataiorder
column for each month's total sales to the dataset. There are only two months present in the data; order these columns in ascending order by month number. If there were no sales, fill the column with
Ensure the final dataset contains only orderid productid promotionid and the monthly total sales columns.
Return the cleaned dataset as a NumPy array.
Example Input:
Example Input:orderid productid promotiomid currency, ordervalue, ordedate,origin, ordervaluecoumn USD, ffline, PROMO Online, Direct, Direct,
Example Output:
No Promotion'
'PROMO
No
Promotion'
No Promotion'
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