Untitled
raw download clone
TEXT
views 7
,
size 2028 b
input_df = pd.DataFrame(columns=['time', 'block', 'asset', 'entity', 'contract', 'size', 'action', 'strike', 'expiry', 'asset_price', 'curve', 'curve_params'])
input_df.loc[0] = [np.nan, 0, np.nan, np.nan, np.nan, '14000, .6', 'bound', np.nan, np.nan, np.nan, np.nan, np.nan]
input_df.loc[1] = [np.nan, 1, np.nan, np.nan, np.nan, np.nan, 'start animation', np.nan, np.nan, np.nan, np.nan, np.nan]
input_df.loc[2] = [0, 1, 'ETH', 'LP_1', '', 1000, 'LP_new', '', '', '', 'poly4d', '0, 0, .3, .1']
input_df.loc[3] = [0, 2, 'ETH', 'LP_2', '', 8000, 'LP_new', '', '', '', 'poly4d', '0, 0, .05, .2']
input_df.loc[4] = [0, 3, 'ETH', 'u1', 'c1', 700, 'user_buy', 200.0, '', 220.0, '', '']
input_df.loc[5] = [0, 2, 'ETH', 'LP_3', '', 1000, 'LP_new', '', '', '', 'poly4d', '0, 0, .1, .05']
input_df.loc[6] = [0, 2, 'ETH', 'LP_4', '', 1000, 'LP_new', '', '', '', 'poly4d', '0, 0, .3, .02']
input_df.loc[7] = [0, 2, 'ETH', 'LP_5', '', 1000, 'LP_new', '', '', '', 'poly4d', '0, 0, .0001, .5']
input_df.loc[8] = [np.nan, 4, np.nan, 'LP_2', np.nan, 4000, 'LP_withdraw', np.nan, np.nan, np.nan, np.nan, np.nan]
input_df.loc[9] = [0, 2, 'ETH', 'LP_6', '', 1000, 'LP_new', '', '', '', 'poly4d', '0, 0, .01, .2']
input_df.loc[10] = [0, 2, 'ETH', 'LP_7', '', 1000, 'LP_new', '', '', '', 'poly4d', '0, 0, .04, .25']
input_df.loc[11] = [np.nan, 5, np.nan, np.nan, np.nan, np.nan, 'plot', np.nan, np.nan, np.nan, np.nan, np.nan]
input_df.loc[12] = [0, 2, 'ETH', 'LP_8', '', 1000, 'LP_new', '', '', '', 'poly4d', '0, 0, .07, .26']
input_df.loc[13] = [0, 2, 'ETH', 'LP_9', '', 1000, 'LP_new', '', '', '', 'poly4d', '0, 0, .08, .22']
input_df.loc[14] = [np.nan, 5, np.nan, np.nan, np.nan, np.nan, 'plot', np.nan, np.nan, np.nan, np.nan, np.nan]
animation_length = (len(input_df) - 2) * 200
input_df.loc[15] = [np.nan, 4, np.nan, np.nan, np.nan, animation_length, 'stop animation', np.nan, np.nan, np.nan, np.nan, np.nan]

# input_df.loc[3] = [np.nan, 4, np.nan, np.nan, np.nan, np.nan, 'plot', np.nan, np.nan, np.nan, np.nan, np.nan]
close fullscreen
Login or Register to edit or fork this paste. It's free.