File size: 547 Bytes
a5788b8 111fd24 88b3961 a5788b8 111fd24 d8136fe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
import streamlit as st
import pandas as pd
# from __future__ import division
import numpy as np
import xgboost as xgb
x = st.slider("Select a value")
st.write(x, "squared is", x * x)
data = pd.read_csv("hf://datasets/Ammok/hair_health/predict_hair_fall.csv")
# Calculate split point (70%)
split_point = int(len(data) * 0.7)
# Split into train and test
train = data.iloc[:split_point]
test = data.iloc[split_point:]
# If you need numpy arrays instead of dataframes
train_np = train.to_numpy()
test_np = test.to_numpy()
st.dataframe(data)
|