课程评价 (0)

请对课程作出评价:
0/300

学员评价

暂无精选评价
7分钟

离散化

1. 连续数据常常会被离散化或者拆分成面元bin。可以通过pandas.cut()函数来实现:

 pandas.cut(x, bins, right=True, labels=None, retbins=False, precision=3,
  include_lowest=False)

2. 另外一个划分的函数是:

 pandas.qcut(x, q, labels=None, retbins=False, precision=3)