Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ if uploaded_file is not None:
|
|
29 |
df = df.drop(0, axis=0)
|
30 |
df = df.drop("Unnamed: 2", axis=1).drop("Unnamed: 4", axis=1).rename({"Unnamed: 0": "Date"}, axis=1)
|
31 |
|
32 |
-
df['Date'] = pd.to_datetime(df['Date'])
|
33 |
|
34 |
stocks = list(df.columns)[-3:]
|
35 |
stocks_rets = []
|
|
|
29 |
df = df.drop(0, axis=0)
|
30 |
df = df.drop("Unnamed: 2", axis=1).drop("Unnamed: 4", axis=1).rename({"Unnamed: 0": "Date"}, axis=1)
|
31 |
|
32 |
+
df['Date'] = pd.to_datetime(df['Date'], format="%d/%m/%Y %H:%M:%S")
|
33 |
|
34 |
stocks = list(df.columns)[-3:]
|
35 |
stocks_rets = []
|