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

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:

主站蜘蛛池模板: 谢通门县| 阿鲁科尔沁旗| 连州市| 屏山县| 林周县| 罗定市| 如东县| 定襄县| 泾阳县| 九江县| 中宁县| 牟定县| 安新县| 瑞丽市| 全州县| 克东县| 萨迦县| 铁岭县| 湟中县| 新化县| 达日县| 嘉定区| 合川市| 邹城市| 蛟河市| 安仁县| 平远县| 依兰县| 静安区| 印江| 屯昌县| 新民市| 治县。| 临猗县| 苗栗市| 桐庐县| 长岭县| 江达县| 虎林市| 永川市| 青河县|