Spaces:
Runtime error
Runtime error
from datetime import datetime | |
import pandas as pd | |
import streamlit as st | |
def load_data(): | |
return pd.DataFrame( | |
{ | |
"appointment": [ | |
datetime(2024, 2, 5, 12, 30), | |
datetime(2023, 11, 10, 18, 0), | |
datetime(2024, 3, 11, 20, 10), | |
datetime(2023, 9, 12, 3, 0), | |
] | |
} | |
) | |
data_df = load_data() | |
st.data_editor( | |
data_df, | |
column_config={ | |
"appointment": st.column_config.DatetimeColumn( | |
"Appointment", | |
min_value=datetime(2023, 6, 1), | |
max_value=datetime(2025, 1, 1), | |
format="D MMM YYYY, h:mm a", | |
step=60, | |
), | |
}, | |
hide_index=True, | |
) | |