fallah
#1
I am scaping tweets and in building acctivity connections and clean up, I get the error:
ValueError: Length mismatch: Expected axis has 0 elements, new values have 4 elements
Here screenshot of the code:
This is very specific to your own code, and implementation, and it’s impossible to tell what could be wrong.
I can recommend using GitHub - DocNow/twarc-csv: A plugin for twarc2 for converting tweet JSON into DataFrames and exporting to CSV. for making dataframes from tweets though. You will get columns for retweet, quote, reply ids already flattened and deduplicated.
1 Like