System save at 14/10/2024 13:07 by user_client2024

This commit is contained in:
user_client2024 2024-10-14 07:37:15 +00:00
parent c65df70254
commit c670ccffa1
3 changed files with 233 additions and 4 deletions

View File

@ -109,7 +109,7 @@
" time_window_s = time_window_s)\n",
" )\n",
" cols = [\n",
" 'TRADER_ID',\n",
" 'focal_ID',\n",
" 'trade_time_window',\n",
" 'net_volume',\n",
" 'order_count',\n",
@ -128,7 +128,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 17,
"id": "b5c4307f-bc35-47e2-b680-fd1df2168d6c",
"metadata": {
"tags": []
@ -140,6 +140,235 @@
"text": [
"Query start time : 2024-10-14 06:23:07.242919\n"
]
},
{
"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>TRADER_ID</th>\n",
" <th>trade_time_window</th>\n",
" <th>net_volume</th>\n",
" <th>order_count</th>\n",
" <th>total_trade_volume</th>\n",
" <th>order_trade_ratio</th>\n",
" <th>volume_percentage</th>\n",
" <th>Segment</th>\n",
" <th>SAR_FLAG</th>\n",
" <th>Risk</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>3097728207</td>\n",
" <td>2024-01-01 00:03:00</td>\n",
" <td>-92.0</td>\n",
" <td>1</td>\n",
" <td>92</td>\n",
" <td>-1.0</td>\n",
" <td>0.0</td>\n",
" <td>Default</td>\n",
" <td>N</td>\n",
" <td>Low Risk</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>3228645322</td>\n",
" <td>2024-01-01 00:06:00</td>\n",
" <td>-689.0</td>\n",
" <td>1</td>\n",
" <td>689</td>\n",
" <td>-1.0</td>\n",
" <td>0.0</td>\n",
" <td>Default</td>\n",
" <td>N</td>\n",
" <td>Low Risk</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>2701872727</td>\n",
" <td>2024-01-01 00:09:00</td>\n",
" <td>-42.0</td>\n",
" <td>1</td>\n",
" <td>42</td>\n",
" <td>-1.0</td>\n",
" <td>0.0</td>\n",
" <td>Default</td>\n",
" <td>N</td>\n",
" <td>Low Risk</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>1659056655</td>\n",
" <td>2024-01-01 00:11:00</td>\n",
" <td>-167.0</td>\n",
" <td>1</td>\n",
" <td>167</td>\n",
" <td>-1.0</td>\n",
" <td>0.0</td>\n",
" <td>Default</td>\n",
" <td>N</td>\n",
" <td>Low Risk</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>1661288887</td>\n",
" <td>2024-01-01 00:13:00</td>\n",
" <td>-756.0</td>\n",
" <td>1</td>\n",
" <td>756</td>\n",
" <td>-1.0</td>\n",
" <td>0.0</td>\n",
" <td>Default</td>\n",
" <td>N</td>\n",
" <td>Low Risk</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>995</th>\n",
" <td>3382197985</td>\n",
" <td>2024-01-01 02:30:00</td>\n",
" <td>-159.0</td>\n",
" <td>1</td>\n",
" <td>159</td>\n",
" <td>-1.0</td>\n",
" <td>0.0</td>\n",
" <td>Default</td>\n",
" <td>N</td>\n",
" <td>Low Risk</td>\n",
" </tr>\n",
" <tr>\n",
" <th>996</th>\n",
" <td>1129008990</td>\n",
" <td>2024-01-01 02:30:00</td>\n",
" <td>-582.0</td>\n",
" <td>1</td>\n",
" <td>582</td>\n",
" <td>-1.0</td>\n",
" <td>0.0</td>\n",
" <td>Default</td>\n",
" <td>N</td>\n",
" <td>Low Risk</td>\n",
" </tr>\n",
" <tr>\n",
" <th>997</th>\n",
" <td>2944122893</td>\n",
" <td>2024-01-01 02:30:00</td>\n",
" <td>-65.0</td>\n",
" <td>1</td>\n",
" <td>65</td>\n",
" <td>-1.0</td>\n",
" <td>0.0</td>\n",
" <td>Default</td>\n",
" <td>N</td>\n",
" <td>Low Risk</td>\n",
" </tr>\n",
" <tr>\n",
" <th>998</th>\n",
" <td>2910876405</td>\n",
" <td>2024-01-01 02:30:00</td>\n",
" <td>-117.0</td>\n",
" <td>1</td>\n",
" <td>117</td>\n",
" <td>-1.0</td>\n",
" <td>0.0</td>\n",
" <td>Default</td>\n",
" <td>N</td>\n",
" <td>Low Risk</td>\n",
" </tr>\n",
" <tr>\n",
" <th>999</th>\n",
" <td>1816942226</td>\n",
" <td>2024-01-01 02:30:00</td>\n",
" <td>-732.0</td>\n",
" <td>1</td>\n",
" <td>732</td>\n",
" <td>-1.0</td>\n",
" <td>0.0</td>\n",
" <td>Default</td>\n",
" <td>N</td>\n",
" <td>Low Risk</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>1000 rows × 10 columns</p>\n",
"</div>"
],
"text/plain": [
" TRADER_ID trade_time_window net_volume order_count \\\n",
"0 3097728207 2024-01-01 00:03:00 -92.0 1 \n",
"1 3228645322 2024-01-01 00:06:00 -689.0 1 \n",
"2 2701872727 2024-01-01 00:09:00 -42.0 1 \n",
"3 1659056655 2024-01-01 00:11:00 -167.0 1 \n",
"4 1661288887 2024-01-01 00:13:00 -756.0 1 \n",
".. ... ... ... ... \n",
"995 3382197985 2024-01-01 02:30:00 -159.0 1 \n",
"996 1129008990 2024-01-01 02:30:00 -582.0 1 \n",
"997 2944122893 2024-01-01 02:30:00 -65.0 1 \n",
"998 2910876405 2024-01-01 02:30:00 -117.0 1 \n",
"999 1816942226 2024-01-01 02:30:00 -732.0 1 \n",
"\n",
" total_trade_volume order_trade_ratio volume_percentage Segment \\\n",
"0 92 -1.0 0.0 Default \n",
"1 689 -1.0 0.0 Default \n",
"2 42 -1.0 0.0 Default \n",
"3 167 -1.0 0.0 Default \n",
"4 756 -1.0 0.0 Default \n",
".. ... ... ... ... \n",
"995 159 -1.0 0.0 Default \n",
"996 582 -1.0 0.0 Default \n",
"997 65 -1.0 0.0 Default \n",
"998 117 -1.0 0.0 Default \n",
"999 732 -1.0 0.0 Default \n",
"\n",
" SAR_FLAG Risk \n",
"0 N Low Risk \n",
"1 N Low Risk \n",
"2 N Low Risk \n",
"3 N Low Risk \n",
"4 N Low Risk \n",
".. ... ... \n",
"995 N Low Risk \n",
"996 N Low Risk \n",
"997 N Low Risk \n",
"998 N Low Risk \n",
"999 N Low Risk \n",
"\n",
"[1000 rows x 10 columns]"
]
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [

View File

@ -109,7 +109,7 @@
" time_window_s = time_window_s)\n",
" )\n",
" cols = [\n",
" 'TRADER_ID',\n",
" 'focal_ID',\n",
" 'trade_time_window',\n",
" 'net_volume',\n",
" 'order_count',\n",

View File

@ -104,7 +104,7 @@ class Scenario:
time_window_s = time_window_s)
)
cols = [
'TRADER_ID',
'focal_ID',
'trade_time_window',
'net_volume',
'order_count',