streamlit / streamlit

Streamlit — A faster way to build and share data apps.

Home Page:https://streamlit.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

making fullscreen df frames dont show from row 0 and you cant scroll to top row. streamlit v. 1.40.0

LazerLars opened this issue · comments

Checklist

  • I have searched the existing issues for similar issues.
  • I added a very descriptive title to this issue.
  • I have provided sufficient information below to help reproduce this issue.

Summary

making a pandas dataframe and printing it to screen with st.write(df) have a bug when you make the df fullscreen, then the top bar where you can choose "download csv, search and fullscreen" dont appear + i starts on a randomline between 20-350ish, and you cant scrool to the top rows.

Reproducible Code Example

df = pd.read_excel('somefile.xlsx') # just a random df with 100 row data
st.write(df)

Steps To Reproduce

load data into a pandas df
write the df to the screen.
make the df full screen
then the error appear

Expected Behavior

like it does in 1.39.0
When you make a df full screen you will still want the options to go to the top row and download the data, search and make it normal size again.

Current Behavior

no error msg. the ui just looks wrong
streamlit_df_bug_1_40_0

Is this a regression?

  • Yes, this used to work in a previous version.

Debug info

  • Streamlit version: 1.40.0
  • Python version: 3.11.1
  • Operating System: windows 10
  • Browser: edge and chrome

Additional Information

No response

If this issue affects you, please react with a 👍 (thumbs up emoji) to the initial post.

Your feedback helps us prioritize which bugs to investigate and address first.

Visits

Hello @LazerLars thank you for filing this issue with clear repro steps and images! I can confirm I am also seeing this behavior in 1.40.0. I will be working with the team on this.

This is the Streamlit app I used to reproduce:

import pandas as pd
import streamlit as st

df = pd.DataFrame({"a": range(100), "b": range(100)})

st.write(df)

You're very welcome. Thats the least I could do when you provide such a nice open source framework out of the box :D

Thanks again for filing this issue! We have shipped a fix for this in Streamlit 1.40.1, which is now available!

Ma man thanks a lot :)