Traceback (most recent call last):
File "C:/Users/zeesu/PycharmProjects/ReadCSVFile/Youtube/scrol_link2.py", line 50, in <module>
df1 = pd.read_csv("C:/Stock_in_CFD/Spicy_Treats/Output2.txt",header=None)
File "C:\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 678, in parser_f
return _read(filepath_or_buffer, kwds)
File "C:\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 440, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "C:\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 787, in __init__
self._make_engine(self.engine)
File "C:\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 1014, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "C:\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 1708, in __init__
self._reader = parsers.TextReader(src, **kwds)
File "pandas\_libs\parsers.pyx", line 542, in pandas._libs.parsers.TextReader.__cinit__
pandas.errors.EmptyDataError: No columns to parse from file
在尝试导入此数据时得到了
https:\www.youtube.com/watch?v=NcANm_CjVYA
https:\www.youtube.com/watch?v=NcANm_CjVYA
https:\www.youtube.com/watch?v=HSPyLfwfHs8
https:\www.youtube.com/watch?v=HSPyLfwfHs8
https:\www.youtube.com/watch?v=zoi6ioQ7-pY
downloaded = open("C:/Stock_in_CFD/Spicy_Treats/title.txt", 'a+', encoding='utf-8')
df1 = pd.read_csv("C:/Stock_in_CFD/Spicy_Treats/Output2.txt",header=None)
这是我正在使用的代码。 我尝试了各种方法,例如定义除臭剂等,但没有帮助。我在这里做错了什么。