Artificial intelligent assistant

ヒストグラムの階級を500区切りにしたい import matplotlib.pyplot as plt import matplotlib.ticker as ticker import pandas as pd import seaborn as sns df = pd.DataFrame( { 'value': [ 5060,5000, 4400, 4001,2500, 1100, 1000, 900, 800, 500,453,392,380,296,207,160,130,100,41,40,32,31,26,25,15,10,9,7 ] } ) ax = sns.histplot(df["value"], kde=False) ax.yaxis.set_major_locator(ticker.MultipleLocator(1)) plt.show() : ![]( `1000``4000`, `5000` Pythonseaborn | matplotlibseaborn `bins` `bins``500``10``11`500

`binwidth=`bin

500
`binrange=`


ax = sns.histplot(df["value"], kde=False, binwidth=500, binrange=(0,5500))


`bins=`


ax = sns.histplot(df["value"], kde=False, bins=range(0,6000,500))


500

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 8f460122bd64af7fc2e702cda09bdb41