[英]How to plot CDF or histogram using a given bins and frequency values? Python
我有一個有兩個值的直方圖數據。 每100毫秒合並(桶)的會話數。 以下數據框是用於重現性的示例數據。 如何從此類數據df中生成直方圖或CDF? 我感謝任何幫助或提示。
import pandas as pd
no_of_session = [8228, 6269,4955,4955,3761,3627]
buckets = [3.0, 2.0, 3.1, 4.0, 3.3 ]
# create empty data frame in pandas
df = pd.DataFrame()
# add a coumn
df['no_of_session'] = no_of_session
df['buckets'] = buckets
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.