Challenge: Visualize and Highlight Outliers
Uppgift
Swipe to start coding
Given a DataFrame containing transaction data, your task is to generate two plots: a scatter plot of transaction amounts over time, and a boxplot of transaction amounts grouped by customer. Outliers in the scatter plot should be highlighted in red.
- Generate a scatter plot of the
Amountcolumn versus theDatecolumn. - Use the interquartile range (IQR) method to identify outliers in the
Amountcolumn. - Highlight outlier points in red on the scatter plot.
- Generate a boxplot of transaction amounts, grouped by the
CustomerIDcolumn.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 5
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Fantastiskt!
Completion betyg förbättrat till 4.76
Challenge: Visualize and Highlight Outliers
Svep för att visa menyn
Uppgift
Swipe to start coding
Given a DataFrame containing transaction data, your task is to generate two plots: a scatter plot of transaction amounts over time, and a boxplot of transaction amounts grouped by customer. Outliers in the scatter plot should be highlighted in red.
- Generate a scatter plot of the
Amountcolumn versus theDatecolumn. - Use the interquartile range (IQR) method to identify outliers in the
Amountcolumn. - Highlight outlier points in red on the scatter plot.
- Generate a boxplot of transaction amounts, grouped by the
CustomerIDcolumn.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 5
single