Executing black over all jupyter notebook (#190)

Reverting black for the jupyter notebooks gets old. Can we just run
black over all of them?
This commit is contained in:
2023-10-04 20:03:47 +02:00
committed by GitHub
parent 030ad00c7d
commit 41f2c9f995
15 changed files with 658 additions and 487 deletions

View File

@ -68,6 +68,7 @@
"import numpy as np\n",
"import pandas as pd\n",
"import ipywidgets as widgets\n",
"\n",
"pd.options.plotting.backend = \"plotly\""
]
},
@ -86,9 +87,9 @@
"metadata": {},
"outputs": [],
"source": [
"dfEON=pd.read_csv('EON_Data.csv', index_col=0, sep=';') \n",
"dfBASF=pd.read_csv('BASF_Data.csv', index_col=0, sep=';') \n",
"dfTELEKOM=pd.read_csv('TELEKOM_Data.csv', index_col=0, sep=';') "
"dfEON = pd.read_csv(\"EON_Data.csv\", index_col=0, sep=\";\")\n",
"dfBASF = pd.read_csv(\"BASF_Data.csv\", index_col=0, sep=\";\")\n",
"dfTELEKOM = pd.read_csv(\"TELEKOM_Data.csv\", index_col=0, sep=\";\")"
]
},
{
@ -112,7 +113,7 @@
}
],
"source": [
"#select a specific year\n",
"# select a specific year\n",
"dfTELEKOM.loc[2016]"
]
},
@ -148,33 +149,34 @@
],
"source": [
"def get_Data(company, metric):\n",
" if company=='BASF':\n",
" dfSelect=dfBASF\n",
" print('BASF')\n",
" if company=='EON':\n",
" dfSelect=dfEON\n",
" print('EON') \n",
" if company=='Telekom':\n",
" dfSelect=dfTELEKOM\n",
" print('Telekom') \n",
" fig=dfSelect.plot()\n",
" fig.show() \n",
" if company == \"BASF\":\n",
" dfSelect = dfBASF\n",
" print(\"BASF\")\n",
" if company == \"EON\":\n",
" dfSelect = dfEON\n",
" print(\"EON\")\n",
" if company == \"Telekom\":\n",
" dfSelect = dfTELEKOM\n",
" print(\"Telekom\")\n",
" fig = dfSelect.plot()\n",
" fig.show()\n",
" return\n",
"\n",
"W_company=widgets.Dropdown(\n",
" options=['BASF', 'EON', 'Telekom'],\n",
" value='BASF',\n",
" description='Company:',\n",
"\n",
"W_company = widgets.Dropdown(\n",
" options=[\"BASF\", \"EON\", \"Telekom\"],\n",
" value=\"BASF\",\n",
" description=\"Company:\",\n",
" disabled=False,\n",
")\n",
"W_metric=widgets.Dropdown(\n",
" options=['EBIT', 'EBITDA', 'Volume'],\n",
" value='Volume',\n",
" description='Metric:',\n",
"W_metric = widgets.Dropdown(\n",
" options=[\"EBIT\", \"EBITDA\", \"Volume\"],\n",
" value=\"Volume\",\n",
" description=\"Metric:\",\n",
" disabled=False,\n",
")\n",
"\n",
"out=widgets.interact(get_Data, company=W_company, metric=W_metric)"
"out = widgets.interact(get_Data, company=W_company, metric=W_metric)"
]
},
{