St.bar_chart - returns - TypeError: field() got an unexpected keyword argument 'alias'

trying to run the example
import streamlit as st
import pandas as pd
import numpy as np

st.title(‘Uber pickups in NYC’)

DATE_COLUMN = ‘date/time’

def load_data(nrows):
data = pd.read_csv(DATA_URL, nrows=nrows)
lowercase = lambda x: str(x).lower()
data.rename(lowercase, axis=‘columns’, inplace=True)
data[DATE_COLUMN] = pd.to_datetime(data[DATE_COLUMN])
return data

Create a text element and let the reader know the data is loading.

data_load_state = st.text(‘Loading data…’)

Load 10,000 rows of data into the dataframe.

data = load_data(10000)

Notify the reader that the data was successfully loaded.

data_load_state.text(‘Done! (using st.cache_data)’)

st.subheader(‘Raw data’)

st.subheader(‘Number of pickups by hour’)
hist_values = np.histogram(
data[DATE_COLUMN].dt.hour, bins=24, range=(0,24))[0]

and got the following error

TypeError: field() got an unexpected keyword argument ‘alias’