Coder Social home page Coder Social logo

api_python3's Introduction

api_python3's People

Contributors

jiajiaxu123 avatar windancer79 avatar wyx0121 avatar xiaodanzhang avatar yiwenqian00 avatar yunangao123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

api_python3's Issues

利用 tableAppender 插入数据会报 Warning

数据插入代码为:
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

请问这个报警会影响程序正确性么?如果是,应该如何修正?

pip install dolphindb ERROR

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

高版本支持

请问dolphindb有3.8之后版本的python和高版本numpy支持计划么?

dolphindb.type_util模块找不到

安装了1.30.0.5版本,
from dolphindb.type_util import *
报错找不到type_util
而且我看源码里也确实没有看到这个模块的文件,怎么解决?

无法安装 pip install dolphindb

ERROR: Could not find a version that satisfies the requirement dolphindb (from versions: none)
ERROR: No matching distribution found for dolphindb

对python3.11的支持

您好开发者,非常感谢您,请问将来会支持python3.11吗?大概什么时间会上线呢?

mac系统无法安装dolphindb的python接口包

这个问题有解决办法吗?还是我装错了?
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

树莓派里运行的docker版Ubuntu无法安装dolphindb的python包

docker image

ubuntu:latest

hostname

   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 version

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.

command

pip install dolphindb

error

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)?

python3没有现成的创建指定库/表的接口

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)

我通过如上脚本进行执行的时候,一直报错,但是我看接口的参数我都传了

数据类型为Object传入输出时确推断为double?????

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):

Column Non-Null Count Dtype


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????这是为什么

Does DolphinDB support User Defined Function?

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?

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.