panda 高阶操作
2023-11-06 本文已影响0人
飞猪的浪漫
iloc的意义在于,用数字表示第几行,然后是第几列;loc是标签,先是行的关键词,然后是列的关键词。
不指定列 (axis =1)的情况下,行为默认,但是为标签或者数字的形式
对列进行减法,需要axis = index;对行的减法,不需要操作。
把yingni函数的应用,指定axis维度 index colomns
不指定的话,就是对行的操作。












iloc的意义在于,用数字表示第几行,然后是第几列;loc是标签,先是行的关键词,然后是列的关键词。
不指定列 (axis =1)的情况下,行为默认,但是为标签或者数字的形式
对列进行减法,需要axis = index;对行的减法,不需要操作。
把yingni函数的应用,指定axis维度 index colomns
不指定的话,就是对行的操作。