美文网首页
三剑客、set_index()、head()、shape()、d

三剑客、set_index()、head()、shape()、d

作者: 是东东 | 来源:发表于2021-01-01 16:36 被阅读0次
    三剑客

    import numpy as np
    import pandas as pd
    import matplotlib.pyplot as plt
    %matplotlib inline


    DataFrame设置行索引

    set_index

    DataFrame.head()
    DataFrame.set_index('Date', inplace=True)

    DataFrame.head()
    查看前五行数据


    DataFrame.shape()
    查看数组维度


    DataFrame.dtypes()
    查看数据类型


    相关文章

      网友评论

          本文标题:三剑客、set_index()、head()、shape()、d

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