Skip to content

Instantly share code, notes, and snippets.

View RenSys's full-sized avatar

kbeigan RenSys

  • Renegade Systems PTY LTD
  • Western Australia
View GitHub Profile
@RenSys
RenSys / Pandas - groupby and transform
Last active October 17, 2021 13:15
[Groupby & apply - Single Line] #pandas #groupby #apply
import pandas as pd
df = pd.DataFrame([
[123, 'abc'],
[123, 'abc'],
[456, 'def'],
[123, 'abc'],
[123, 'abc'],
[456, 'def'],
[456, 'def'],
@RenSys
RenSys / Pandas - Periodic Dataframes
Last active May 3, 2019 06:34
Pandas - Dict of Periodic Dataframes
from glob import glob
import pandas as pd
folder = "data"
filename_wildcard = f"{folder}/*.gz"
tags = [
"timestamp",
"01_dv_01_mi_daca_pv",
"01_dv_01_si_daca_pv",
@RenSys
RenSys / batch_matplotlib_diagram_dump.py
Last active April 30, 2019 09:07
Matplotlib - pd.Series dump to matplotlib png
from glob import glob
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
sns.set_style("darkgrid")
sns.set(rc = {"figure.figsize": (20, 10)})
sns.set(rc = {"figure.titlesize": "start-large"})
filename_wildcard = '*.gz'
@RenSys
RenSys / TensorFlow - Basic Minimisation with Gradient Descent using placeholder data.ipynb
Created May 11, 2018 07:31
TensorFlow - Basic Minimisation with Gradient Descent using placeholder data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RenSys
RenSys / TensorFlow - Basic Minimisation with Gradient Descent.ipynb
Last active May 11, 2018 07:19
TensorFlow - Basic Minimisation with Gradient Descent
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RenSys
RenSys / Numpy - Normalizing Data.ipynb
Created May 10, 2018 23:58
Numpy - Normalizing Data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RenSys
RenSys / Machine Learning - Generating Logscales for hyperparameter Arrays for tuning.ipynb
Created May 8, 2018 21:41
Machine Learning - Generating Logscales for hyperparameter Arrays for tuning
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RenSys
RenSys / Maths - Exponentially Moving Weighted Average.ipynb
Created May 6, 2018 06:16
Maths - Exponentially Moving Weighted Average
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RenSys
RenSys / Control Kalman Filter - Simple (youtube example).ipynb
Last active April 22, 2018 21:13
Control Kalman Filter - Simple (youtube example)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RenSys
RenSys / Numpy - Normal Distributed Random Values - np.random.randn and normal.ipynb
Last active February 13, 2018 02:17
Numpy - Normal Distributed Random vectors and matrices using np.random.randn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.