# Me recreating your dataframe
pageviews = np.random.randint(200, size=100)
types = np.random.choice(['original','licensed'], size=100)
df = pd.DataFrame({'pageviews': pageviews,'type':types})
# Code you need to create faceted histogram by type
df.hist(by='type')
使用当前数据帧:
df.hist(by='type')
例如:
pandas.DataFrame.hist documentation
相关问题 更多 >
编程相关推荐