推荐学习书目
› 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
jxylon
V2EX  ›  Python

关于 Dataframe 求列名的问题

  •  
  •   jxylon · Apr 30, 2018 · 2452 views
    This topic created in 3072 days ago, the information mentioned may be changed or developed.

    一个 Dataframe 名为 A

       a  b  c  e  k  g
    0  1  2  3  4  5  6
    1  1  2  3  4  6  6
    2  2  2  3  4  1  2
    3  3  4  4  4  1  2
    

    一个二维数组

    [[1 2 3]
     [1 2 3]
     [2 2 3]
     [3 4 4]]
    

    如何求 A 中与二维数组值重复的列名?

    就像这里重复的列是[a,b,c]

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1055 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 23:32 · PVG 07:32 · LAX 16:32 · JFK 19:32
    ♥ Do have faith in what you're doing.