Giter VIP home page Giter VIP logo

chinese-stock-financial-index's Introduction

chinese-stock-Financial-Index

计算**A股所有股票的3年平均财务指标,并可以按照3年平均市盈率过滤股票

使用前提:

  1. 安装Python3
  2. 安装pandas
  3. lxml也是必须的,正常情况下安装了Anaconda后无须单独安装,如果没有可执行:pip install lxml
  4. tushare

建议安装Anaconda(http://www.continuum.io/downloads),一次安装包括了Python环境和全部依赖包,减少问题出现的几率。

2017-06-09 pip tushare最新版本(0.7.9)的获取今日股票价格函数有问题,所以直接把它github的源代码拷过来(这个上面的没有这个问题)。

使用方法

  1. 解压'finance2016.7z'文件到当前文件夹,解压后为finance2016文件夹,包含所有a股公司到2016年的财务数据
  2. 运行calcu_3year_average_pe.py 通过3年平均收益率筛选股票,默认为市盈率范围为2-20,可以修改。 生成类似 '2017-06-09-3年平均市盈率在2和20之间的公司.xlsx'文件名的文件,里面包含筛选出来的公司。 直接用excel打开即可查看

chinese-stock-financial-index's People

Contributors

feihualiu avatar lfh2016 avatar

Watchers

 avatar  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.