# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# ## Snippets

# + pycharm={"name": "#%%\n"}
# OPTIONAL: Load the "autoreload" extension so that code can change
# %load_ext autoreload
# OPTIONAL: always reload modules so that as you change code in src, it gets loaded
# %autoreload 2
# %matplotlib inline

# + pycharm={"name": "#%%\n"}
from FLUCCOplus.notebooks import *
import FLUCCOplus.electricitymap as elmap

# + pycharm={"name": "#%%\n"}
years = em_raw.index.year.unique().values
print(f"{len(years)} Jahre: ", years)

# + pycharm={"name": "#%%\n"}
for i, year in enumerate(years):
    print(f"{i+1}: {year} - {em_raw[em_raw.index.year == year].shape}(h, columns)")

# + pycharm={"name": "#%%\n"}


# + pycharm={"name": "#%%\n"}
filt = (em.index.year <= 2018) & (em.index.year >= 2016)
em.loc[filt].isna()

StarcoderdataJupyterScriptsDedupFiltered