关于Pandas——loc、iloc、ix 函数区别和用法,可见博客:
https://blog.youkuaiyun.com/u012736685/article/details/86610946
这里只是码一下, ix方法是包含首尾的,示例如下:
print(data_set1[['Value']].ix[0:3, :])
其输出为:
Value
0 2.814025
1 2.782955
2 2.725973
3 2.794768
共四行
关于Pandas——loc、iloc、ix 函数区别和用法,可见博客:
https://blog.youkuaiyun.com/u012736685/article/details/86610946
这里只是码一下, ix方法是包含首尾的,示例如下:
print(data_set1[['Value']].ix[0:3, :])
其输出为:
Value
0 2.814025
1 2.782955
2 2.725973
3 2.794768
共四行