我在使用以下代码时显示错误: -
```
导入fasttext
x_val = df['Message']
y_val = df['Categories']
model = fasttext.skipgram(x_val, y_val)
print model.words
TypeError:
<ipython-input-105-58241a9688b5>
<module>()
----> 1 model = fasttext.skipgram(x_val, y_val)
2 print model.words # list of words in dictionary
fasttext/fasttext.pyx in fasttext.fasttext.skipgram (fasttext/fasttext.cpp:6451)()
fasttext/fasttext.pyx in fasttext.fasttext.train_wrapper (fasttext/fasttext.cpp:5223)()
/root/anaconda2/lib/python2.7/genericpath.pyc in isfile(path)
35 """Test whether a path is a regular file"""
36 try:
---> 37 st = os.stat(path)
38 except os.error:
39 return False
TypeError: coercing to Unicode: need string or buffer, Series found
```
感谢您的帮助。