Your ROOT_URL in app.ini is http://192.168.1.7:3000/ but you are visiting http://shqkxh.org:3000/guofu/dolphin-dev/src/commit/85522c064c6110a995862b7deb6792990594a659/ipynb/ddb_pit.ipynb
You should set ROOT_URL correctly, otherwise the web may not work correctly.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
"\tquery_table_exp = select * from cj(query_table, select code from source_table where partition(code, code_partition_id) group by code map);\n",
"\t\n",
"\tsource_table_part = select source_table.* from ej(source_table, query_table_exp, `code`report_period) where partition(code, code_partition_id);\n",
"\t\n",
"\treturn select source_table_part.* from aj(query_table_exp, source_table_part, `code`report_period`m_nDate, `code`report_period`appear_at_date) where not isNull(source_table_part.code)\n",
"\treturn select source_table_part.* from aj(query_table_exp, source_table_part, `code`report_period`m_nDate, `code`report_period`appear_at_date) where not isNull(source_table_part.code)\n",
"}\n",
"\n",
"addFunctionView(pit_col_at_date);\n",
"\"\"\")"
]
},
{
"cell_type": "code",
"execution_count": 69,
"id": "943b760a-ab39-4291-8a93-81b3e38a70b7",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th>TOT_OPER_REV</th>\n",
" </tr>\n",
" <tr>\n",
" <th>code</th>\n",
" <th>report_period</th>\n",
" <th>appear_at_date</th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>000400.SZ</th>\n",
" <th>2019-09-30</th>\n",
" <th>2020-10-29</th>\n",
" <td>5.658881e+09</td>\n",
" </tr>\n",
" <tr>\n",
" <th>000558.SZ</th>\n",
" <th>2019-09-30</th>\n",
" <th>2020-10-29</th>\n",
" <td>8.322244e+07</td>\n",
" </tr>\n",
" <tr>\n",
" <th>000677.SZ</th>\n",
" <th>2019-09-30</th>\n",
" <th>2020-10-21</th>\n",
" <td>6.020088e+08</td>\n",
" </tr>\n",
" <tr>\n",
" <th>000731.SZ</th>\n",
" <th>2019-09-30</th>\n",
" <th>2020-10-27</th>\n",
" <td>2.311672e+09</td>\n",
" </tr>\n",
" <tr>\n",
" <th>000752.SZ</th>\n",
" <th>2019-09-30</th>\n",
" <th>2020-10-29</th>\n",
" <td>2.330136e+08</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <th>...</th>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>688039.SH</th>\n",
" <th>2019-09-30</th>\n",
" <th>2020-10-28</th>\n",
" <td>1.185143e+08</td>\n",
" </tr>\n",
" <tr>\n",
" <th>688368.SH</th>\n",
" <th>2019-09-30</th>\n",
" <th>2020-10-28</th>\n",
" <td>6.139719e+08</td>\n",
" </tr>\n",
" <tr>\n",
" <th>688396.SH</th>\n",
" <th>2019-09-30</th>\n",
" <th>2020-10-20</th>\n",
" <td>4.131915e+09</td>\n",
" </tr>\n",
" <tr>\n",
" <th>831010.NE</th>\n",
" <th>2019-09-30</th>\n",
" <th>2020-10-29</th>\n",
" <td>2.276040e+08</td>\n",
" </tr>\n",
" <tr>\n",
" <th>833874.NE</th>\n",
" <th>2019-09-30</th>\n",
" <th>2020-10-26</th>\n",
" <td>1.303494e+08</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>91 rows × 1 columns</p>\n",
"</div>"
],
"text/plain": [
" TOT_OPER_REV\n",
"code report_period appear_at_date \n",
"000400.SZ 2019-09-30 2020-10-29 5.658881e+09\n",
"000558.SZ 2019-09-30 2020-10-29 8.322244e+07\n",
"000677.SZ 2019-09-30 2020-10-21 6.020088e+08\n",
"000731.SZ 2019-09-30 2020-10-27 2.311672e+09\n",
"000752.SZ 2019-09-30 2020-10-29 2.330136e+08\n",
"... ...\n",
"688039.SH 2019-09-30 2020-10-28 1.185143e+08\n",
"688368.SH 2019-09-30 2020-10-28 6.139719e+08\n",
"688396.SH 2019-09-30 2020-10-20 4.131915e+09\n",
"831010.NE 2019-09-30 2020-10-29 2.276040e+08\n",
"833874.NE 2019-09-30 2020-10-26 1.303494e+08\n",
"\n",
"[91 rows x 1 columns]"
]
},
"execution_count": 69,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sess.run(\"\"\"\n",
" select * from pit_col_at_date(\"is_common_adj\", \"TOT_OPER_REV\", 2021.03.14, [2019.09.30], 0) order by code\n",