ParserWarning: Falling back to the 'python' engine because the 'c' engine does not support regex separators-报警解决办法

Python 3.9.10, Window 64bit

 

 

 警告:ParserWarning: Falling back to the 'python' engine because the 'c' engine does not support regex separators (separators > 1 char and different from '\s+' are interpreted as regex)

 

解决方法:加上 engine='python'

ratings = pd.read_table('data\ml-1m\\ratings.dat',sep='::',header=None,names=rnames,engine='python')

 

 

转载于:https://www.cnblogs.com/kimbo/p/6347148.html

posted @ 2022-10-23 19:52  菜鸟&码农  阅读(115)  评论(0编辑  收藏  举报