In Python I need to write a list of numpy-arrays (see attached picture) to a txt.-file and then reuse that original list of arrays in a new python-file. How can I do that?
read_files = open("read_files.txt","w+")
content = str(df)
read_files.write(content)
read_files.close()
Then in the new python-file I did:
file = open("read_files.txt", "r")
content = file.read()
But when I want to slice the list of arrays in the new python-file I get the following error:
TypeError: string indices must be integers