I have a data:
# dt
Column1
1
2
3
4
5
6
7
8
9
I want to create a new column by bins' average of min and max.
# dt
Column1 Column2
1 2
2 2
3 2
4 5
5 5
6 5
7 8
8 8
9 8
pd.qcut(dt['Column1'], 3)
So column2 = (min of bin + max of bin)/2.