user_interactions_df = pd.read_csv(https://drive.google.com/uc?export=download&id=1WgjXneyZHGQrxrh1maRyPdbXE3J9wp--)
^
字符串
语法错误:无效十进制文字
enter image description here
任何建议都会有帮助。
先谢谢你。
我只想运行我的代码!!第一次遇到堆栈溢出:)谢谢
1条答案
按热度按时间0pizxfdo1#
read_csv()
函数接受一个包含文件路径的字符串参数。您正在尝试做的将不起作用,因为
pd.read_csv()
无法从Web地址请求该文件。下载.csv文件并将文件路径作为参数传递给函数。在这里查看pandas
read_csv()
文档:https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html