cyberosa
commited on
Commit
·
93eadbc
1
Parent(s):
f28c155
adding debugging prints
Browse files- app.py +2 -1
- tabs/invalid_markets.py +2 -0
app.py
CHANGED
|
@@ -199,7 +199,8 @@ def prepare_data():
|
|
| 199 |
) = prepare_data()
|
| 200 |
trades_df = trades_df.sort_values(by="creation_timestamp", ascending=True)
|
| 201 |
unknown_trades = unknown_trades.sort_values(by="creation_timestamp", ascending=True)
|
| 202 |
-
|
|
|
|
| 203 |
demo = gr.Blocks()
|
| 204 |
|
| 205 |
# preparing data for the errors
|
|
|
|
| 199 |
) = prepare_data()
|
| 200 |
trades_df = trades_df.sort_values(by="creation_timestamp", ascending=True)
|
| 201 |
unknown_trades = unknown_trades.sort_values(by="creation_timestamp", ascending=True)
|
| 202 |
+
print("head of invalid trades")
|
| 203 |
+
print(invalid_trades.head())
|
| 204 |
demo = gr.Blocks()
|
| 205 |
|
| 206 |
# preparing data for the errors
|
tabs/invalid_markets.py
CHANGED
|
@@ -60,6 +60,8 @@ def plotly_daily_nr_invalid_markets(invalid_trades: pd.DataFrame) -> gr.Plot:
|
|
| 60 |
.agg(trades_count=("title", "count"), nr_markets=("title", "nunique"))
|
| 61 |
.reset_index()
|
| 62 |
)
|
|
|
|
|
|
|
| 63 |
# Create the Plotly figure
|
| 64 |
fig = go.Figure()
|
| 65 |
|
|
|
|
| 60 |
.agg(trades_count=("title", "count"), nr_markets=("title", "nunique"))
|
| 61 |
.reset_index()
|
| 62 |
)
|
| 63 |
+
print("head of daily invalid markets")
|
| 64 |
+
print(daily_invalid_markets.head())
|
| 65 |
# Create the Plotly figure
|
| 66 |
fig = go.Figure()
|
| 67 |
|