DF columns not displayed

df = pd.DataFrame(
np.random.randn(50, 20),
columns=('col %d' % i for i in range(20)))

st.dataframe(df)  # Same as st.write(df)

running this now I get no column header showing

The text appear with a light gray background and then goes away with a white a background. Is this a header color issue?

hey hi ! maybe try this also install import all dependency

import pandas as pd
import numpy as np
import streamlit as st

# Create a DataFrame with 50 rows and 20 columns
df = pd.DataFrame(np.random.randn(50, 20), columns=[f'col {i}' for i in range(20)])
st.dataframe(df) 

also check out the docs for more info

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.