Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
import plotly.express as px
|
| 3 |
import plotly.graph_objects as go
|
| 4 |
import pandas as pd
|
| 5 |
from datetime import datetime, timedelta
|
|
@@ -63,7 +62,7 @@ fig = go.Figure()
|
|
| 63 |
|
| 64 |
for _, row in data.iterrows():
|
| 65 |
fig.add_trace(go.Bar(
|
| 66 |
-
x=[row['End'] - row['Start']],
|
| 67 |
y=[row['Variable']],
|
| 68 |
orientation='h',
|
| 69 |
base=row['Start'],
|
|
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
import plotly.graph_objects as go
|
| 3 |
import pandas as pd
|
| 4 |
from datetime import datetime, timedelta
|
|
|
|
| 62 |
|
| 63 |
for _, row in data.iterrows():
|
| 64 |
fig.add_trace(go.Bar(
|
| 65 |
+
x=[(row['End'] - row['Start']).days], # Convertir timedelta a días
|
| 66 |
y=[row['Variable']],
|
| 67 |
orientation='h',
|
| 68 |
base=row['Start'],
|