Sofi1606 commited on
Commit
25eeaee
1 Parent(s): 882dc84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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']).dt.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 = []