'DataFrame' object has no attribute 'to_dataframe'
The function pd.read_csv() is already a DataFrame and thus that kind of object does not support calling .to_dataframe(). 

You can check the type of your variable ds using print(type(ds)), you will see that it is a pandas DataFrame type.