From 083c66abb1c7e165b2296828b1b77f0e6a8fbb41 Mon Sep 17 00:00:00 2001
From: Guofu Li
Date: Wed, 28 Sep 2022 14:51:17 +0800
Subject: [PATCH] Dump daily one-hot concept data to dolphindb.
---
ipynb/ddb.ipynb | 780 +++++++++++++++++++++++++++++--------
ipynb/ddb_pit.ipynb | 319 +--------------
ipynb/mssql.ipynb | 20 +-
src/DDBBase.py | 7 +-
src/loader/DDBHFTLoader.py | 14 -
src/loader/DDBLoader.py | 15 +-
src/run.py | 13 +-
7 files changed, 671 insertions(+), 497 deletions(-)
diff --git a/ipynb/ddb.ipynb b/ipynb/ddb.ipynb
index 9f8652a..f839689 100644
--- a/ipynb/ddb.ipynb
+++ b/ipynb/ddb.ipynb
@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
- "execution_count": 2,
+ "execution_count": 3,
"id": "7246e0c8-61cd-4cbf-a978-aa0dc0172d6d",
"metadata": {},
"outputs": [],
@@ -35,28 +35,17 @@
},
{
"cell_type": "code",
- "execution_count": 60,
+ "execution_count": null,
"id": "ed17fd0b-9b36-47e4-9ab6-11459a3621fb",
"metadata": {},
- "outputs": [
- {
- "data": {
- "text/plain": [
- "115548"
- ]
- },
- "execution_count": 60,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"sess = ddb.session('192.168.1.7', 8848)\n",
"sess.login('admin', '123456')\n",
"\n",
"# backup(backup_path, sql_obj, force, parallel)\n",
"code = \"\"\"\n",
- " backup('/data/dolphindb/backup/',