0

I have the graph I want, but I cannot get the pcertanges of the users converted to print ontop of the bars for the new web page and the old web page.

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import scipy.stats as stats
import seaborn as sns
import warnings 
warnings.filterwarnings('ignore')

data = pd.read_csv('abtest.csv')
data.head()

enter image description here

sns.catplot( x='converted',
         kind="count", 
         hue="landing_page", 
         height=5, 
         aspect=1.5, 
         data=data,
          legend=False)
plt.xlabel("Conversion", size=14)
plt.ylabel("Count", size=14)
plt.legend(loc='upper center', bbox_to_anchor=(0.5, 1.05),
      ncol=3, fancybox=True, shadow=True)
plt.tight_layout()

enter image description here

4

0 回答 0