Git Product home page Git Product logo

pandas-cookbook's Introduction

Pandas 手册

以下内容翻译自这里

pandas 是一个用于数据分析的Python库,它能让你快速处理一些探索性的工作。

本手册的目的通过一些实际的例子来让你开始使用pandas。 Pandas 的帮助文档已经相当全面了。不过,经常会有人询问 应该怎样上手。接下来我讲讲如何用pandas来处理一些真实世界中的数据,如你所料,这些数据包含各种bug和异常值。

接下来我会使用以下3个数据

  • 311 calls in New York
  • How many people were on Montréal's bike paths in 2012
  • Montreal's weather for 2012, hourly

这些数据已经包含在本目录下。

目录

怎么使用Panda手册

首先,你需要更新下IPython Notebook(>= 3.0) 以及 pandas(>=0.13)

用pip可以完成以上操作:

pip install ipython pandas numpy tornado pyzmq jinja2 matplotlib

编译和配置这些有时候挺繁琐的,我自己是用的 Anaconda,这个软件把几乎所有你能想到的库都包含了,并且是免费和开源的。

安装好IPython和pandas后就可以开始啦~

git clone https://github.com/ia-cas/pandas-cookbook.git
cd pandas-cookbook/cookbook
ipython notebook

执行完以上命令后,你的浏览器会自动打开一个地址为 http://localhost:8888的页面。

尽情享受吧~

Contribute!

如果你发现某些地方有错误,或者是你想学习一些我在这里没有讲到的东西, 又或者是你想分享些东西,赶紧发个issue,或者发邮件,pull request都行!

TODO

  • join 操作
  • 使用 stack/unstack
  • ???

MORE

注:我会在这里分享些自己用pandas的心得,有兴趣可以看看。

License

Creative Commons License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

pandas-cookbook's People

Contributors

amygdalama avatar c-martinez avatar duims avatar findmyway avatar jbalogh avatar julia-stripe avatar jvns avatar kim0 avatar mkuzak avatar oibe avatar russkel avatar scls19fr avatar wolever avatar yaoshicn avatar

Watchers

 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.