Re-order daily data columns and rename volume column

This commit is contained in:
moshferatu 2024-11-22 11:44:18 -08:00
parent 3ffa498348
commit b2a15b86ea

View File

@ -55,7 +55,9 @@ def get_daily_data(symbol: str, start_date: datetime, end_date: datetime) -> pd.
data['Date'] = data['Date'].dt.date data['Date'] = data['Date'].dt.date
data = data[(data['Date'] >= start_date.date()) & (data['Date'] <= end_date.date())] data = data[(data['Date'] >= start_date.date()) & (data['Date'] <= end_date.date())]
data = data.reset_index(drop = True) data = data.reset_index(drop = True)
return data
data = data.rename(columns = { 'Total Volume': 'Volume' })
return data[daily_columns]
def seconds(value): def seconds(value):
return value return value