Q: how to use visualization to show home owners and enters' balance compare? Q: Use a visualization to show how homeowners and renters' balances compare, and whether this effect is different for married vs single customers. Note that balance is a highly skewed variable, so use the log of balance instead of balance itself (use the np.log10 function). To simplify things, leave out the negative balances from the plot. Choose your visualization carefully and short summary of what your visualization shows.
bank['balance_log']=np.log10(bank['balance'])
bank.head(10)

    age job marital education   default balance housing loan    contact day month   duration    campaign    pdays   previous    poutcome    y   balance_log
0   58  management  married tertiary    no  2143    own no  unknown 5   may 261 1   -1  0   unknown no  3.331022
1   44  technician  single  secondary   no  29  own no  unknown 5   may 151 1   -1  0   unknown no  1.462398
2   33  entrepreneur    married secondary   no  2   own yes unknown 5   may 76  1   -1  0   unknown no  0.301030
3   47  blue-collar married unknown no  1506    own no  unknown 5   may 92  1   -1  0   unknown no  3.177825
4   33  unknown single  unknown no  1   rented  no  unknown 5   may 198 1   -1  0   unknown no  0.000000
5   35  management  married tertiary    no  231 own no  unknown 5   may 139 1   -1  0   unknown no  2.363612
6   28  management  single  tertiary    no  447 own yes unknown 5   may 217 1   -1  0   unknown no  2.650308
7   42  entrepreneur    divorced    tertiary    yes 2   own no  unknown 5   may 380 1   -1  0   unknown no  0.301030
8   58  retired married primary no  121 own no  unknown 5   may 50  1   -1  0   unknown no  2.082785
9   43  technician  single  secondary   no  593 own no  unknown 5   may 55  1   -1  0   unknown no  2.773055


sns.catplot(x="balance_log", y="housing", kind="violin", data=bank)

Error:
ValueError: array must not contain infs or NaNs
How to exclude the nagtive and infinite values from the log column?
Is the rest of code correct fo the aforementioned question??
