Skip to content

Instantly share code, notes, and snippets.

View nkipa's full-sized avatar

Paul Dawidowicz nkipa

  • NKIPA, LLC.
  • Chile
View GitHub Profile
def modelingFor5(Account):
df_model = df[df['Account'] == Account]
df_timeseries = pd.DataFrame(df_model.groupby(['Date'])['NetAmount'].sum()).sort_index(axis=0)
data = pd.DataFrame(df_timeseries.NetAmount)
data.columns = ["y"]
# Drop data after 2019-06
data = data.loc[data.index[:-1]]
from btgym import BTgymEnv
import IPython.display as Display
import PIL.Image as Image
from gym import spaces
import gym
import numpy as np
import random