我的代码出现以下错误File
"C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py",
line 2519, in setitem
self._set_item(key, value)
File
"C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py",
line 2584, in _set_item
self._ensure_valid_index(value)
File
"C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py",
line 2566, in _ensure_valid_index
raise ValueError('Cannot set a frame with no defined index '
ValueError: Cannot set a frame with no defined index and a value that
cannot be converted to a Series
既然我还在学习,我就很难修好它。。。我该怎么办?import json
import pandas as pd
import matplotlib.pyplot as plt
tweets_data_path="C:/Users/prono/.spyder-py3/twitter_data.txt"
tweets_data = []
tweets_file = open(tweets_data_p