Commit
·
33c9197
1
Parent(s):
3210b75
fixing column types in lineplot
Browse files- tabs/invalid_markets.py +1 -0
tabs/invalid_markets.py
CHANGED
|
@@ -28,6 +28,7 @@ def plot_daily_nr_invalid_markets(invalid_trades: pd.DataFrame):
|
|
| 28 |
.agg(trades_count=("title", "count"), nr_markets=("title", "nunique"))
|
| 29 |
.reset_index()
|
| 30 |
)
|
|
|
|
| 31 |
return gr.LinePlot(
|
| 32 |
value=daily_invalid_markets,
|
| 33 |
x="creation_date",
|
|
|
|
| 28 |
.agg(trades_count=("title", "count"), nr_markets=("title", "nunique"))
|
| 29 |
.reset_index()
|
| 30 |
)
|
| 31 |
+
daily_invalid_markets.columns = daily_invalid_markets.columns.astype(str)
|
| 32 |
return gr.LinePlot(
|
| 33 |
value=daily_invalid_markets,
|
| 34 |
x="creation_date",
|