Skip to content

Commit

Permalink
Merge pull request #29 from SermetPekin/remove_datagroups_function
Browse files Browse the repository at this point in the history
datagroups fnc was removed
  • Loading branch information
SermetPekin authored Aug 1, 2024
2 parents b48d8bc + fa97f9b commit 2932e5c
Show file tree
Hide file tree
Showing 9 changed files with 240 additions and 82 deletions.
101 changes: 47 additions & 54 deletions Example_get_series_exp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 1,
"id": "08f96479-49fa-4e27-a33b-81bf55d8ad5a",
"metadata": {},
"outputs": [],
Expand All @@ -13,17 +13,10 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 2,
"id": "0c370f8a-5883-43ce-9e47-d338e0ceedf2",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requesting... will be running now...\n"
]
},
{
"data": {
"text/html": [
Expand Down Expand Up @@ -55,31 +48,31 @@
" <th>0</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>01-01-2000</td>\n",
" <td>01-01-2005</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>02-01-2000</td>\n",
" <td>02-01-2005</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>0.540098</td>\n",
" <td>0.542096</td>\n",
" <td>03-01-2000</td>\n",
" <td>1.3363</td>\n",
" <td>1.8233</td>\n",
" <td>03-01-2005</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>0.540793</td>\n",
" <td>0.545660</td>\n",
" <td>04-01-2000</td>\n",
" <td>1.3383</td>\n",
" <td>1.8105</td>\n",
" <td>04-01-2005</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>0.535815</td>\n",
" <td>0.552961</td>\n",
" <td>05-01-2000</td>\n",
" <td>1.3427</td>\n",
" <td>1.7976</td>\n",
" <td>05-01-2005</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
Expand All @@ -88,58 +81,58 @@
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8975</th>\n",
" <th>7148</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>28-07-2024</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8976</th>\n",
" <td>32.958600</td>\n",
" <td>35.773200</td>\n",
" <th>7149</th>\n",
" <td>32.9586</td>\n",
" <td>35.7732</td>\n",
" <td>29-07-2024</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8977</th>\n",
" <td>32.950900</td>\n",
" <td>35.711000</td>\n",
" <th>7150</th>\n",
" <td>32.9509</td>\n",
" <td>35.7110</td>\n",
" <td>30-07-2024</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8978</th>\n",
" <td>33.030400</td>\n",
" <td>35.761200</td>\n",
" <th>7151</th>\n",
" <td>33.0304</td>\n",
" <td>35.7612</td>\n",
" <td>31-07-2024</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8979</th>\n",
" <td>33.083500</td>\n",
" <td>35.814500</td>\n",
" <th>7152</th>\n",
" <td>33.0835</td>\n",
" <td>35.8145</td>\n",
" <td>01-08-2024</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>8980 rows × 3 columns</p>\n",
"<p>7153 rows × 3 columns</p>\n",
"</div>"
],
"text/plain": [
" TP_DK_USD_A_YTL TP_DK_EUR_A_YTL Tarih\n",
"0 NaN NaN 01-01-2000\n",
"1 NaN NaN 02-01-2000\n",
"2 0.540098 0.542096 03-01-2000\n",
"3 0.540793 0.545660 04-01-2000\n",
"4 0.535815 0.552961 05-01-2000\n",
"0 NaN NaN 01-01-2005\n",
"1 NaN NaN 02-01-2005\n",
"2 1.3363 1.8233 03-01-2005\n",
"3 1.3383 1.8105 04-01-2005\n",
"4 1.3427 1.7976 05-01-2005\n",
"... ... ... ...\n",
"8975 NaN NaN 28-07-2024\n",
"8976 32.958600 35.773200 29-07-2024\n",
"8977 32.950900 35.711000 30-07-2024\n",
"8978 33.030400 35.761200 31-07-2024\n",
"8979 33.083500 35.814500 01-08-2024\n",
"7148 NaN NaN 28-07-2024\n",
"7149 32.9586 35.7732 29-07-2024\n",
"7150 32.9509 35.7110 30-07-2024\n",
"7151 33.0304 35.7612 31-07-2024\n",
"7152 33.0835 35.8145 01-08-2024\n",
"\n",
"[8980 rows x 3 columns]"
"[7153 rows x 3 columns]"
]
},
"execution_count": 12,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -153,14 +146,14 @@
"\n",
"\"\"\" \n",
"\n",
"df = get_series(ID , cache = True )\n",
"df = get_series(ID , cache = False , start_date=\"01-01-2005\" )\n",
"\n",
"df\n"
]
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 3,
"id": "339c0542-2c34-4443-b436-dbe03c6d4225",
"metadata": {},
"outputs": [
Expand All @@ -175,11 +168,11 @@
{
"data": {
"text/html": [
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #ff00af; text-decoration-color: #ff00af; background-color: #000000; font-style: italic\">Could not convert some columns to float type</span><span style=\"color: #808000; text-decoration-color: #808000; background-color: #000000; font-style: italic\">...</span>\n",
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008080; text-decoration-color: #008080; background-color: #000000; font-style: italic\">Could not convert some columns to float type</span><span style=\"color: #808000; text-decoration-color: #808000; background-color: #000000; font-style: italic\">...</span>\n",
"</pre>\n"
],
"text/plain": [
"\u001b[3;38;5;199;40mCould not convert some columns to float type\u001b[0m\u001b[3;33;40m...\u001b[0m\n"
"\u001b[3;36;40mCould not convert some columns to float type\u001b[0m\u001b[3;33;40m...\u001b[0m\n"
]
},
"metadata": {},
Expand All @@ -195,11 +188,11 @@
{
"data": {
"text/html": [
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008080; text-decoration-color: #008080; background-color: #000000; font-style: italic\">Could not convert some columns to float type</span><span style=\"color: #808000; text-decoration-color: #808000; background-color: #000000; font-style: italic\">...</span>\n",
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #800080; text-decoration-color: #800080; background-color: #000000; font-style: italic\">Could not convert some columns to float type</span><span style=\"color: #808000; text-decoration-color: #808000; background-color: #000000; font-style: italic\">...</span>\n",
"</pre>\n"
],
"text/plain": [
"\u001b[3;36;40mCould not convert some columns to float type\u001b[0m\u001b[3;33;40m...\u001b[0m\n"
"\u001b[3;35;40mCould not convert some columns to float type\u001b[0m\u001b[3;33;40m...\u001b[0m\n"
]
},
"metadata": {},
Expand Down Expand Up @@ -318,7 +311,7 @@
"0 04-01-1999 01-08-2024 "
]
},
"execution_count": 18,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -342,7 +335,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 4,
"id": "f70b1cf2-7dd9-42ca-9009-0d825f4fcaf2",
"metadata": {},
"outputs": [
Expand Down
3 changes: 1 addition & 2 deletions evdspy/EVDSlocal/console/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
from ..common.colors import *
# from evdspy.utils.utils_general import *
indent = " " * 15
# MenuItem = namedtuple("MenuItem", "func disp sleeptime clear")
# MenuItem = namedtuple("MenuItem", "func disp sleeptime clear")

from typing import Union, List, Callable
do_nothing = lambda: True
@dataclass
Expand Down
Loading

0 comments on commit 2932e5c

Please sign in to comment.