This commit is contained in:
Azmikun1 2025-12-17 10:13:04 +07:00
parent c5943a36d7
commit 8817cefa56
2 changed files with 2 additions and 6 deletions

5
app.py
View File

@ -85,10 +85,6 @@ html, body, [class*="css"] { font-family: "Inter", "DejaVu Sans", sans-serif; }
@st.cache_data(ttl="1h") @st.cache_data(ttl="1h")
def load_eth_data(): def load_eth_data():
"""
Mengembalikan Tuple: (DataFrame, Status)
Status: "online", "backup", atau "error"
"""
ticker = "ETH-USD" ticker = "ETH-USD"
df = None df = None
@ -108,7 +104,6 @@ def load_eth_data():
# Bersihkan Index & Kolom # Bersihkan Index & Kolom
df = df.reset_index() df = df.reset_index()
# Handle jika kolom masih berupa Tuple/MultiIndex
new_cols = [] new_cols = []
for col in df.columns: for col in df.columns:
col_name = col[0] if isinstance(col, tuple) else str(col) col_name = col[0] if isinstance(col, tuple) else str(col)

View File

@ -713,4 +713,5 @@ Date,Close,High,Low,Open,Volume
2025-12-12,3084.172607421875,3265.37255859375,3050.267333984375,3237.025634765625,24391003174 2025-12-12,3084.172607421875,3265.37255859375,3050.267333984375,3237.025634765625,24391003174
2025-12-13,3116.6953125,3134.849365234375,3080.07861328125,3084.129638671875,9916869400 2025-12-13,3116.6953125,3134.849365234375,3080.07861328125,3084.129638671875,9916869400
2025-12-14,3060.5947265625,3128.622802734375,3034.692626953125,3116.743896484375,15619543350 2025-12-14,3060.5947265625,3128.622802734375,3034.692626953125,3116.743896484375,15619543350
2025-12-16,2945.362060546875,2976.176513671875,2945.362060546875,2964.31201171875,27966212096 2025-12-15,2964.18310546875,3175.1181640625,2899.685791015625,3060.4814453125,28765976892
2025-12-17,2944.746826171875,2969.88525390625,2942.890869140625,2962.631103515625,21822717952

1 Date Close High Low Open Volume
713 2025-12-12 3084.172607421875 3265.37255859375 3050.267333984375 3237.025634765625 24391003174
714 2025-12-13 3116.6953125 3134.849365234375 3080.07861328125 3084.129638671875 9916869400
715 2025-12-14 3060.5947265625 3128.622802734375 3034.692626953125 3116.743896484375 15619543350
716 2025-12-16 2025-12-15 2945.362060546875 2964.18310546875 2976.176513671875 3175.1181640625 2945.362060546875 2899.685791015625 2964.31201171875 3060.4814453125 27966212096 28765976892
717 2025-12-17 2944.746826171875 2969.88525390625 2942.890869140625 2962.631103515625 21822717952