Giter Site home page Giter Site logo

pandas.net's Introduction

Pandas.NET

Implemented APIs

1. Pandas

  • DataFrame
    • pd.DataFrame(NDArray data, IList<string> index, IList<string> columns, Type dtype)
    • pd.DataFrame<TIndex>(NDArray data, IList<TIndex> index, IList<string> columns, Type dtype)
    • pd.DataFrame(IDictionary<string, NDArray> data, IList<string> index)
    • pd.DataFrame<TIndex>(IDictionary<string, NDArray> data, IList<TIndex> index)
  • Series
    • pd.Series(NDArray data)
    • pd.Series(Array data)
    • pd.Series<T>(T data)

2. Series

  • s.iloc[0]:按索引选取数据

  • s.loc["index_label"]:按索引标签选取数据

3. DataFrame

结构

  • df.Index
  • df.Columns
  • df.Values
  • df.Shape
  • df.NDIM
  • df.Size

方法

  • df[0]:按列索引选取数据(返回Series)

  • df[params int[] columnIndexs] :按列索引选取数据(返回DataFrame)

  • df["column_label"]:按列标签选取数据(返回Series);可通过 set 访问器增加列(如果列标签不存在)

  • df[params string[] columnLabels]:按列标签选取数据(返回DataFrame)

  • df.Column(string columnLabel, NDArray value):设置列以及列的值;当列不存在时创建

  • df.Column(int columnIndex, NDArray value):设置列以及列的值;当列不存在时报异常

  • df[Slice s]:行切片选取数据

  • df.loc["index_label"]:按行索引标签选取数据

  • df.loc["index_label", "column_label"]:按行和列标签选取数据

  • df.iloc[0]:按行索引(row number)选取数据

pandas.net's People

Contributors

aoaaquarius avatar huazhikui avatar oceania2018 avatar wangjie0916 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.