Question: 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
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
