0

Why I don't find hundred values while plotting confusion matrix using pandas dataframe?

This is what I write:

   import seaborn as sn
import pandas as pd
import matplotlib.pyplot as plt

array = [[630,90,4],
         [159,1872,8],
         [11,27,231]]

df_cm = pd.DataFrame(array, range(3), range(3))
# plt.figure(figsize=(10,7))
sn.set(font_scale=1.4) # for label size
sn.heatmap(df_cm, annot=True, annot_kws={"size": 16}) # font size

plt.show()

but I find 6.3e+02 and 1.6e+02

seni
  • 659
  • 1
  • 8
  • 20

0 Answers0