- Belo Horizonte, Minas Gerasi - Brazil
- https://daniel-bicalho.medium.com/
Pinned Loading
-
simulation_stock.py
simulation_stock.py 1number_of_samples = 10
2historical_result = list()
3n_iterations = 100
45def get_sample(population, number_of_samples):
-
frame_ticker.py
frame_ticker.py 1frame_ticker = frame[['ticker', 'date']].groupby('ticker').agg(['min', 'max']).reset_index()
2frame_ticker.columns = ['_'.join(col) for col in frame_ticker.columns.values]
3frame_ticker.rename(columns={'ticker_':'ticker'}, inplace=True)
4frame_ticker = pd.merge(
5frame_ticker,
-
frame_week.py
frame_week.py 1#create column with year and week year number
2frame['year_week'] = frame['date'].apply(lambda x: str(x.isocalendar()[0])+'_'+str(x.isocalendar()[1]))
34#create a copy of dataframe to be used and get week initial and final day
5frame_week = frame[['ticker', 'year_week', 'date']].groupby(['ticker', 'year_week']).agg(['min', 'max'])
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.