美文网首页
pandas使用技巧【14】操作多行rows,多列columns

pandas使用技巧【14】操作多行rows,多列columns

作者: 夜雨寒山 | 来源:发表于2017-11-09 14:47 被阅读0次
    简介: 本文主要介绍了怎样操作多行rows,多列columns。

    选择

    loc方法

    dataframe.loc[ index,  columns]
    dataframe.loc[ [index1, index2],  :]
    dataframe.loc[ :,  columns]
    

    iloc方法

    dataframe.loc[ pos,  columns]
    dataframe.loc[ [1,2,3],  :]
    

    ix方法

    丢弃

    drop()方法,

    附上小哥哥的视频链接Data analysis in Python with pandas
    Youtube 🔗
    哔哩哔哩 🔗

    本系列文章列表
    pandas使用技巧总览

    相关文章

      网友评论

          本文标题:pandas使用技巧【14】操作多行rows,多列columns

          本文链接:https://www.haomeiwen.com/subject/jowpmxtx.html