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

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:

主站蜘蛛池模板: 威海市| 盐津县| 阜平县| 连城县| 两当县| 芦溪县| 天峻县| 丹江口市| 石台县| 琼结县| 沁水县| 五指山市| 宝坻区| 天等县| 手游| 罗源县| 云龙县| 呼图壁县| 阜新市| 石棉县| 精河县| 民县| 舟曲县| 凤庆县| 沂水县| 昔阳县| 石泉县| 南木林县| 玛纳斯县| 乃东县| 益阳市| 忻城县| 盐山县| 开远市| 南康市| 贵定县| 新丰县| 永新县| 崇礼县| 贵港市| 苏尼特左旗|