dolphindb / api_python3 Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
数据插入代码为:
appender = ddb.tableAppender(db_path, db_table, session)
appender.append(table_data)
上述代码运行会触发 Warning:
dolphindb/session.py:1176: UserWarning: Pandas doesn't allow columns to be created via a new attribute name - see https://pandas.pydata.org/pandas-docs/stable/indexing.html#attribute-access
我的版本信息为:
dolphindb 1.30.21.2
pandas 1.5.2
请问这个报警会影响程序正确性么?如果是,应该如何修正?
ImportError: DLL load failed while importing dolphindbcpp: 动态链接库(DLL)初始化例程失败。
macOS High Sierra 10.13.6 (17G14042)
conda 22.9.0
python 3.7.13
RUN:
pip install dolphindb
OUTPUT:
ERROR: Could not find a version that satisfies the requirement dolphindb (from versions: none)
ERROR: No matching distribution found for dolphindb
作为python3.4版本后主要的发展方向,只有同步接口的话我觉得应用场景十分受限
请问dolphindb有3.8之后版本的python和高版本numpy支持计划么?
安装了1.30.0.5版本,
from dolphindb.type_util import *
报错找不到type_util
而且我看源码里也确实没有看到这个模块的文件,怎么解决?
ERROR: Could not find a version that satisfies the requirement dolphindb (from versions: none)
ERROR: No matching distribution found for dolphindb
您好开发者,非常感谢您,请问将来会支持python3.11吗?大概什么时间会上线呢?
这个问题有解决办法吗?还是我装错了?
none of the wheel's tags ... are compatible
ERROR: Could not find a version that satisfies the requirement dolphindb==1.30.0.5 (from versions: none)
ERROR: No matching distribution found for dolphindb==1.30.0.5
ubuntu:latest
Static hostname: raspberrypi
Icon name: computer
Machine ID: 44087beb04334b83a8f3b6fb8b93f95f
Boot ID: 2f004e709b0449b385df47c7310e5aaa
Operating System: Raspbian GNU/Linux 10 (buster)
Kernel: Linux 5.10.63-v7l+
Architecture: arm
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
pip install dolphindb
Looking in indexes: http://mirrors.aliyun.com/pypi/simple
ERROR: Could not find a version that satisfies the requirement dolphindb (from versions: none)
ERROR: No matching distribution found for dolphindb
Does it support docker ubuntu image in raspberry (arm32V7)?
script = f"""
dataPath = "{self.db_client.db_url}"
db = database(dataPath)
bar_columns = ["symbol", "exchange", "datetime", "interval", "volume", "turnover", "open_interest", "open_price", "high_price", "low_price", "close_price"]
bar_type = [SYMBOL, SYMBOL, NANOTIMESTAMP, SYMBOL, DOUBLE, DOUBLE, DOUBLE, DOUBLE, DOUBLE, DOUBLE, DOUBLE]
bar = table(1:0, bar_columns, bar_type)
db.createPartitionedTable(
bar,
"bar",
partitionColumns=["datetime"],
sortColumns=["symbol", "exchange", "interval", "datetime"],
keepDuplicates=LAST)
"""
self.db_client.execute(script)
我通过如上脚本进行执行的时候,一直报错,但是我看接口的参数我都传了
py3.11 pip install 用不了,想自己setup一下~
Ubuntu-22.04
python版本3.8.18
pandas 1.5.3
doblindb 1.30.22.6
appender: ddb.PartitionedTableAppender = ddb.PartitionedTableAppender( ddb_conn.db_path, "stock", "trade_date", ddb_conn.pool ) appender.append(data)
RuntimeError Traceback (most recent call last)
Cell In[25], line 4
1 appender: ddb.PartitionedTableAppender = ddb.PartitionedTableAppender(
2 ddb_conn.db_path, "stock", "trade_date", ddb_conn.pool
3 )
----> 4 appender.append(data)
File d:\anaconda3\envs\qlib_env\lib\site-packages\dolphindb\session.py:1201, in PartitionedTableAppender.append(self, table)
1199 if self.pool.is_shutdown():
1200 raise RuntimeError("DBConnectionPool has been shut down.")
-> 1201 return self.appender.append(table)
RuntimeError: in append: column [code], expect type SYMBOL, got type DOUBLE
但是data.info()数据类型为:
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 5318 entries, 0 to 5317
Data columns (total 23 columns):
0 adj_open 5318 non-null float64
1 vwap 5318 non-null float64
2 amount 5318 non-null int32
3 adj_close 5318 non-null float64
4 high 5318 non-null float64
5 code 5318 non-null object
6 adj_factor 5318 non-null float64
7 open 5318 non-null float64
8 pct_chg 5318 non-null float64
9 adj_low 5318 non-null float64
10 change 5318 non-null float64
11 trade_status_code 5318 non-null float64
12 limit 5318 non-null float64
13 close 5318 non-null float64
14 volume 5318 non-null int32
15 adj_preclose 5318 non-null float64
16 stopping 5318 non-null float64
17 trade_date 5318 non-null datetime64[ns]
18 pre_close 5318 non-null float64
19 trade_status 5318 non-null object
20 low 5318 non-null float64
21 adjclose_backward 5318 non-null float64
22 adj_high 5318 non-null float64
dtypes: datetime64ns, float64(18), int32(2), object(2)
memory usage: 914.2+ KB
code类在py中的数据类型为object但是报错却说其类型为DOUBEL????这是为什么
I am currently working on a benchmark of time series database systems for analytical (complex) queries. These queries are algorithms that cannot (easily) be implemented in SQL language so they require a third-party programming language such as C, C++, Python, Java, etc.
I am writing to you to ask if DolphinDB support such a feature of a third-party programming language for User Defined Functions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.