Giter VIP home page Giter VIP logo

Comments (1)

linsamtw avatar linsamtw commented on May 12, 2024

已修復

import requests
import pandas as pd
url = "http://api.finmindtrade.com/api/v2/data"
parameter = {
    "dataset": "StockDividend",
    "stock_id": "2330",
    "date": "2019-01-01",
}
data = requests.get(url, params=parameter)
data = data.json()
data = pd.DataFrame(data['data'])

for col in list(data.columns):
    print(data[col].unique())



['2019-06-30' '2019-09-25' '2019-12-25' '2020-03-25' '2020-06-24'
 '2020-09-23']
['2330']
['107年' '108年第1季' '108年第2季' '108年第3季' '108年第4季' '109年第1季']
[0.]
[0.]
['']
[0.]
[0.]
[0.]
[0.]
[8.  2.  2.5]
[0.]
['2019-06-24' '2019-09-19' '2019-12-19' '2020-03-19' '2020-06-18'
 '2020-09-17']
['2019-07-18' '2019-10-17' '2020-01-16' '2020-04-16' '2020-07-16'
 '2020-10-15']
[0.]
[0.]
[0.]
[0.]
[0.]
[25930380458]
['2019-06-06' '2019-07-09' '2019-08-14' '2019-11-14' '2020-02-14'
 '2020-05-14']
['15:47:30.000000000' '18:33:02.000000000' '15:27:02.000000000'
 '17:01:07.000000000' '15:10:50.000000000' '10:51:55.000000000']

from finmind.

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.