python中的分段线性回归

P3t*_*rus 6 python linear-regression

python中有一个库可以进行分段线性回归吗?我想自动为我的数据添加多行来得到这样的东西: 分段回归

顺便说一句.我知道细分的数量.