Ευχαριστώ για την απάντηση.
Έχω ένα άλλο θέμα. Στον παρακάτω κώδικα(μια παραλλαγή του χρησιμοποιώ εγώ)
github.com/adilmoujahid/Twitter_Analytic...er/analyze_tweets.py
βάζοντας το δικό μου αρχείο μου "πετάει" το παρακάτω error
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\pandas\core\frame.py", line 2344, in _ensure_valid_index
value = Series(value)
File "C:\Python34\lib\site-packages\pandas\core\series.py", line 202, in __init__
data = list(data)
File "C:\Users\giannis\Desktop\twitter_anal.py", line 38, in <lambda>
tweets = map(lambda tweet: tweet, tweets_data)
KeyError: 'text'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\giannis\Desktop\twitter_anal.py", line 69, in <module>
main()
File "C:\Users\giannis\Desktop\twitter_anal.py", line 38, in main
tweets = map(lambda tweet: tweet, tweets_data)
File "C:\Python34\lib\site-packages\pandas\core\frame.py", line 2299, in __setitem__
self._set_item(key, value)
File "C:\Python34\lib\site-packages\pandas\core\frame.py", line 2365, in _set_item
self._ensure_valid_index(value)
File "C:\Python34\lib\site-packages\pandas\core\frame.py", line 2346, 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