Challenge: Visualize and Highlight Outliers
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 5
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Fantastisk!
Completion rate forbedret til 4.76
Challenge: Visualize and Highlight Outliers
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 5
single