推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
shyrock
V2EX  ›  Python

pandas plot 怎么把分组的数据画到一张图上?

  •  
  •   shyrock · Jan 16, 2019 · 2308 views
    This topic created in 2699 days ago, the information mentioned may be changed or developed.

    比如一张收款表 类型|时间|累计金额 ---|:--:|---: 首付款|2018-1-1|50000 终验款|2018-7-1|60000 ....

    我用 df.groupby('类型’).plot(x='时间',y='金额', kind='line')画出来是多幅图,每图一根曲线。 然而我希望的是一张图上多条曲线,有高人知道吗?

    shyrock
        1
    shyrock  
    OP
       Jan 16, 2019
    话说 v2 这个 markdown 是假的吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2853 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 15:10 · PVG 23:10 · LAX 08:10 · JFK 11:10
    ♥ Do have faith in what you're doing.