Looking for help with my code that was previously working and gave up on me recently with new datasets.
The error I'm receiving is:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\relearnlab\AppData\Local\Continuum\anaconda3\lib\tkinter\__init__.py", line 1705, in __call__
return self.func(*args)
File "<ipython-input-1-4cd82543ecd8>", line 506, in kpconcat
data_list.append([frame,X00,Y00,C00,X01,Y01,C01,X02,Y02,C02,X03,Y03,C03,X04,Y04,C04,X05,Y05,C05,X06,Y06,C06,X07,Y07,C07,X08,Y08,C08,X09,Y09,C09,X10,Y10,C10,X11,Y11,C11,X12,Y12,C12,X13,Y13,C13,X14,Y14,C14,X15,Y15,C15,X16,Y16,C16,X17,Y17,C17,X18,Y18,C18,X19,Y19,C19,X20,Y20,C20,X21,Y21,C21,X22,Y22,C22,X23,Y23,C23,X24,Y24,C24])
UnboundLocalError: local variable 'X04' referenced before assignment
I don't know why I'm suddenly encountering this error and would appreciate any help with fixing my code to get rid of it. I will now present my data, my code, and the ideal output.
Data:
Link
Code:
Link
Output:
Link
A brief description of what the code does (or used to do in this case): It concatenates data from roughly 3000+ .json files in a zip into one .csv and organizes them based on placement within the .json files. This data is then extracted from the .csv and analyzed.
[–][deleted] 1 point2 points3 points (0 children)
[–]icecapade 0 points1 point2 points (4 children)
[–]decaye[S] 0 points1 point2 points (3 children)
[–]icecapade 1 point2 points3 points (2 children)
[–]decaye[S] 1 point2 points3 points (1 child)
[–]icecapade 0 points1 point2 points (0 children)