You are tasked with preparing a dataset that has a mix of continuous, ordinal, and nominal variables for a machine learning model. What would be the most appropriate encoding method for ordinal variables?
Which of the following techniques should be avoided to ensure that your Python data scripting code is easily understandable and follows best practices?
You have a DataFrame named df that has three columns: 'A', 'B', 'C'. The DataFrame has 100 rows. Your task is to create a DataFrame where each column 'A', 'B', 'C' is transformed into 3 columns each: 'A_min', 'A_max', 'A_mean', 'B_min', 'B_max', 'B_mean', 'C_min', 'C_max', 'C_mean'. Which of the following code snippets accomplishes this task?
You have a dataset of a retail company's sales transactions, which includes details like customer ID, transaction amount, transaction date, and store ID. You're tasked with summarizing monthly revenue for each store. What would be the most appropriate data aggregation technique?