Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left
Apply NowLogin using Social Account
     Continue with GoogleLogin using your credentials
Let us visualize the class-imbalance using Seaborn countplot
.
Note:
sns.countplot
shows the counts of observations in each categorical bin using bars.Mention the colors of the bars to be displayed for each class in the count plot.
colors = ['blue','red']
Use sns.countplot
and pass 'Class'
, data=data
and palette=colors
as input arguments.
<< your code comes here >>('Class', data=data, palette=colors)
We observe that the classes are highly imbalanced with most of the transactions are non-fraud.
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...