Pandas —— qcut( )与cut( )的区别
2018-02-15 12:43
190 查看
qcut是根据这些值的频率来选择箱子的均匀间隔。
cut将根据值本身来选择箱子均匀间隔。
转载地址:
https://stackoverflow.com/questions/30211923/what-is-the-difference-between-pandas-qcut-and-pandas-cut
pd.qcut(factors, 5).value_counts() [-2.578, -0.829] 6 (-0.829, -0.36] 6 (-0.36, 0.366] 6 (0.366, 0.868] 6 (0.868, 2.617] 6
cut将根据值本身来选择箱子均匀间隔。
pd.cut(factors, 5).value_counts() (-2.583, -1.539] 5 (-1.539, -0.5] 5 (-0.5, 0.539] 9 (0.539, 1.578] 9 (1.578, 2.617] 2
转载地址:
https://stackoverflow.com/questions/30211923/what-is-the-difference-between-pandas-qcut-and-pandas-cut
相关文章推荐
- pandas.qcut与pandas.cut区别
- pandas切片索引中loc、iloc、ix的区别
- Pandas —— get_dummies( )和 factorize( )的区别
- pandas中ix loc iloc的区别
- Pandas的 loc iloc ix 区别
- Pandas的 loc iloc ix 区别
- Pandas 中map, applymap and apply的区别
- Pandas groupby apply agg 区别 运行自定义函数
- 详谈Pandas中iloc和loc以及ix的区别
- awk与cut在以空格为分割域时的区别
- Pandas的 loc iloc ix 区别
- python中pandas包中的DataFrame有关操作iloc与.loc的区别
- Pandas的 loc iloc ix 区别
- pandas中loc、iloc、ix的区别
- 浅谈Pandas中map, applymap and apply的区别
- Pandas中ix,loc,iloc有什么区别?
- pandas 下的 one hot encoder 及 pd.get_dummies() 与 sklearn.preprocessing 下的 OneHotEncoder 的区别
- python pandas (ix & iloc &loc) 的区别
- pandas read_sql与read_sql_table、read_sql_query 的区别
- python pandas (ix & iloc &loc) 的区别