Spaces:
Sleeping
Sleeping
app.py
CHANGED
@@ -19,10 +19,10 @@ def display_image(image_path):
|
|
19 |
return image
|
20 |
|
21 |
|
22 |
-
def get_currency_values(file, date_input):
|
23 |
data = pd.read_excel(file)
|
24 |
data.dropna(inplace=True)
|
25 |
-
data['Date'] = pd.to_datetime(data['Date'], dayfirst=True)
|
26 |
date = pd.to_datetime(date_input, dayfirst=True)
|
27 |
row = data[data['Date'] == date]
|
28 |
if not row.empty:
|
|
|
19 |
return image
|
20 |
|
21 |
|
22 |
+
def get_currency_values(file, date_input):
|
23 |
data = pd.read_excel(file)
|
24 |
data.dropna(inplace=True)
|
25 |
+
data['Date'] = pd.to_datetime(data['Date'], dayfirst=True)
|
26 |
date = pd.to_datetime(date_input, dayfirst=True)
|
27 |
row = data[data['Date'] == date]
|
28 |
if not row.empty:
|