Re-order daily data columns and rename volume column
This commit is contained in:
parent
3ffa498348
commit
b2a15b86ea
@ -55,7 +55,9 @@ def get_daily_data(symbol: str, start_date: datetime, end_date: datetime) -> pd.
|
||||
data['Date'] = data['Date'].dt.date
|
||||
data = data[(data['Date'] >= start_date.date()) & (data['Date'] <= end_date.date())]
|
||||
data = data.reset_index(drop = True)
|
||||
return data
|
||||
|
||||
data = data.rename(columns = { 'Total Volume': 'Volume' })
|
||||
return data[daily_columns]
|
||||
|
||||
def seconds(value):
|
||||
return value
|
||||
|
Loading…
Reference in New Issue
Block a user