分箱:抽象理解为苹果根据大小不同分级分箱
import numpy as np
import pandas as pd
from pandas import Series,DataFrame
# 模拟成绩分箱...37, 86, 44, 82, 49, 91, 49, 82, 53, 89, 47,
56, 38, 86])
# 成绩评级分段
bins = [0,59,70,80,100]
# 分箱...100]]
Length: 20
Categories (4, interval[int64]): [(0, 59] < (59, 70] < (70, 80] < (80, 100]]
# 每一个分箱多少人...91 iLZ
12 49 BVK
13 82 E9C
14 53 rbE
15 89 hSL
16 47 AIt
17 56 Gdk
18 38 AFX
19 86 JhU
# 利用pd.cut将数据处理并填充到