官术网_书友最值得收藏!

The size and shape of a Series

The number of items in a Series object can be determined by several techniques, the first of which is by using the Python len() function:

The same result can be obtained by using the .size property:

An alternate form for getting the size of a Series is to use the .shape property. This returns a two-value tuple, but with only the first value specified and representing the size:

主站蜘蛛池模板: 盐边县| 剑阁县| 峨眉山市| 富阳市| 清水河县| 石城县| 密山市| 台湾省| 丽江市| 青阳县| 洪雅县| 新泰市| 伊金霍洛旗| 榆社县| 咸阳市| 宿州市| 枣阳市| 太保市| 柘荣县| 沅陵县| 富平县| 额济纳旗| 峨眉山市| 甘谷县| 长兴县| 丁青县| 高邑县| 星子县| 桃江县| 邻水| 中西区| 临漳县| 沙雅县| 高雄市| 曲周县| 资中县| 定南县| 盐山县| 成安县| 万州区| 吐鲁番市|