Author:
Date:
Goal:
Conclusion:
split cell here
import base64 | |
from pathlib import Path | |
from typing import Sequence, Union | |
import altair as alt | |
import numpy as np | |
import pandas as pd | |
import tensorflow as tf | |
import umap | |
from tensorflow.python.keras.preprocessing.image_dataset import ( |
import base64 | |
from pathlib import Path | |
from typing import Sequence, Union | |
import altair as alt | |
import numpy as np | |
import pandas as pd | |
import tensorflow as tf | |
import umap | |
from tensorflow.python.keras.preprocessing.image_dataset import ( |
def explode_list_of_dicts(df,col): | |
exploded_rows = df.explode(col) | |
exploded_cols = exploded_rows[col].apply(pd.Series) | |
return pd.concat([ | |
exploded_rows.drop(col,axis=1), | |
exploded_cols | |
], | |
axis=1 | |
) |
Do your commits fail because of pre-commit?
Do those hooks tend to fix the problems they detect? E.g. python's black and isort?
Are you frustrated by having to find out which items were changed and should be updated?
Did you ever accidentally add items because you did a lazy git add .
when you shouldn't have?
|
#logger.py | |
import logging | |
from rich.logging import RichHandler | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.INFO) | |
# the handler determines where the logs go: stdout/file | |
shell_handler = RichHandler() |
### A Pluto.jl notebook ### | |
# v0.11.14 | |
using Markdown | |
using InteractiveUtils | |
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error). | |
macro bind(def, element) | |
quote | |
local el = $(esc(element)) |