Giter Club home page Giter Club logo

Comments (5)

Seedarchangel avatar Seedarchangel commented on May 17, 2024

没有增加是怕变得臃肿。我不记得Tushare自己有sqlite/mongodb配置?
参考http://tushare.org/storing.html
好像没有看到类似的配置

from tuchart.

royburns avatar royburns commented on May 17, 2024

截图上传失败,nosql就是,往下翻就能看到,

from tuchart.

royburns avatar royburns commented on May 17, 2024

不过确实不是tushare直接提供的

MongoDB
pandas目前没有提供直接存入MongoDB的方法,不过依然很简单,而且方式很多,用户可根据自身的业务特点选择存储的结构方式。

使用方法:

import pymongo
import json

conn = pymongo.Connection('127.0.0.1', port=27017)
df = ts.get_tick_data('600848',date='2014-12-22')

conn.db.tickdata.insert(json.loads(df.to_json(orient='records')))

from tuchart.

royburns avatar royburns commented on May 17, 2024

用mysql也可以,有个数据存存起来感觉更好点,哈哈哈

from tuchart.

Seedarchangel avatar Seedarchangel commented on May 17, 2024

@royburns 确实可以考虑一下,目前没加还是因为dependency太复杂会增加使用难度

from tuchart.

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.