Coder Social home page Coder Social logo

Comments (2)

Micro-sheep avatar Micro-sheep commented on August 21, 2024

ef.fund.get_fund_codes(ft = 'gp')

    基金代码                  基金简称

0     003834              华夏能源革新股票

1     005669            前海开源公用事业股票

2     004040             金鹰医疗健康产业A

**3     517793                 1.20%**

517793 1.20%

数据有误

应该 把 columns = ['基金代码', '基金简称']

results = re.findall('(\d{6}),(.*?),', response.text)

改为

    text = text[text.index('["') + 2:text.index('"]')]

    fs = text.split('","')

    datas = {'基金代码': [], '基金简称': [], '净值': []]}

    for f in fs:

        data = f.split(',')

        datas['基金代码'].append(data[0])

        datas['基金简称'].append(data[1])

好 很棒啊!下个版本修复。

from efinance.

Micro-sheep avatar Micro-sheep commented on August 21, 2024

ef.fund.get_fund_codes(ft = 'gp')

    基金代码                  基金简称

0     003834              华夏能源革新股票

1     005669            前海开源公用事业股票

2     004040             金鹰医疗健康产业A

**3     517793                 1.20%**

517793 1.20%

数据有误

应该 把 columns = ['基金代码', '基金简称']

results = re.findall('(\d{6}),(.*?),', response.text)

改为

    text = text[text.index('["') + 2:text.index('"]')]

    fs = text.split('","')

    datas = {'基金代码': [], '基金简称': [], '净值': []]}

    for f in fs:

        data = f.split(',')

        datas['基金代码'].append(data[0])

        datas['基金简称'].append(data[1])

今天发布的新版本中已修复该问题。

from efinance.

Related Issues (20)

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.