TypeError  : ‘ellipsis’ object is not iterable

This looks like this Altair bug with Python 3.5.1: https://github.com/altair-viz/altair/issues/972 3

it is strange that this line of code:
st.subheader(f'Map of all pickups at {hour_to_filter}:00)
works perfectly in Windows but when I run it on the macos I get an ‘invalid syntax’, “unxpected token ‘)’” and an “undefined variable ‘f’” errors.

You’re likely using a version of Python that doesn’t support f-strings. Those were added in Python version 3.6.
So your best bet for both of these is just to upgrade Python to a more recent version