Download Source:https://www.philadelphiafed.org/surveys-and-data/real-time-data-research/ads - Click "Most Current ADS Index Vintage" to download the file.
Notepad++ shows the download file is ANSI type.
Therefore, I use encoding = 'mbcs'
to decode it. However, there is an error unknown encoding: mbcs
Orginal Code:
ads_url ="https://www.philadelphiafed.org/-/media/frbp/assets/surveys-and-data/ads/ads_index_most_current_vintage.xlsx?la=en&hash=6DF4E54DFAE3EDC347F80A80142338E7"
df_ads = pd.read_csv(ads_url, encoding = 'mbcs')
df_ads_spark = spark.createDataFrame(df_ads)