Spaces:
Sleeping
Sleeping
cyberosa commited on
Commit ·
f497c67
1
Parent(s): 35989d5
adding datetime column
Browse files
app.py
CHANGED
|
@@ -38,6 +38,9 @@ def prepare_data():
|
|
| 38 |
FROM read_parquet('./live_data/markets_live_data.parquet')
|
| 39 |
"""
|
| 40 |
df = con.execute(query).fetchdf()
|
|
|
|
|
|
|
|
|
|
| 41 |
return df
|
| 42 |
|
| 43 |
|
|
|
|
| 38 |
FROM read_parquet('./live_data/markets_live_data.parquet')
|
| 39 |
"""
|
| 40 |
df = con.execute(query).fetchdf()
|
| 41 |
+
df["sample_datetime"] = df["sample_timestamp"].apply(
|
| 42 |
+
lambda x: datetime.fromtimestamp(x)
|
| 43 |
+
)
|
| 44 |
return df
|
| 45 |
|
| 46 |
|