This imports the libraries we will be using.
streamlit - to do interactive visualisation and real-time updates of our data
pandas - to read our CSV file
altair - to build a customized chart
We then define a load_data function which reads the file and c
reates some convenient human-readable versions. The Price colum
n is based on the existing price column (note the capitalisatio
n difference)n and formats each price as an integer with a curren
cy string (CHF, which is what the Swiss use for their currency
instead of a symbol like "\$") and similarly for the Size.
This function then gives us a Pandas dataframe from the file, which we can use to pass data to Streamlit and filter based on user input.
Adding text to our application
Right below, add the following code
python
st.title('Bern Rental Prices')
