Using python 2.7 and the jsonpickle and pandas library I saved a number of tweets to a .txt file using jsonfile.write(jsonpickle.encode(tweets._json,unpicklable=False)+'\n')
which encodes the json value of the tweet using the jsonpickle
package
when i try to read the txt file into a pandas dataframe in a different script using
tester = pandas.read_pickle(fileToProcess)
My traceback's most recent call is
File "C:\Python27\lib\pickle.py", line 858, in load dispatchkey KeyError: '{'
I get the same error with a number of files I created. Here is an example file 3.8MB in size Sample Tweets File I'm new to json files but can an panda or a pickle expert help me get my tweets into a dataframe?