Hey @dhruva98 and welcome to the community,
It sounds like you’d like a “wide mode” and you want to be able to set it through Python rather than the UI? If so, we have a feature request related to this that would make “wide mode” sticky. We’re currently discussing two different options for this within the above issue and we’d for you to comment/upvote your opinion!
Also somewhat related, we’re starting to think about different ways to do layout in Streamlit to support dashboards like these. If you’d like to take a look, here are feature requests for grid layout and horizontal layout.
Hope this helps and feel free to let us know if you have any additional questions or if you’re looking for different functionality.