jbpb02021/12/05 01:50 編集こんな感じ? import numpy as np import pandas as pd df = pd.DataFrame(np.random.randn(10, 2)) df.hist(bins=5) s = df.iloc[:, 0] #s = df.iloc[:, 1] print(s.value_counts(bins=5, sort=False)) 参考 https://stackoverflow.com/questions/17148787/are-there-functions-to-retrieve-the-histogram-counts-of-a-series-in-pandas