I created an instance like this:
class some_class():
def __init__(self, aa, bb):
self.a = aa
self.b = bb
def add(self):
self.c = self.a + self.b
return self.c
instance001 = some_class(2,200)
And now I try to save instance001
to hard drive for future use.
with open('Storage', 'w') as file:
file.write(instance001)
This doesn't work. How To store instances?
Preferred format would be hdf, but any other idea is welcome.
NOTE: Pandas in in heavy use.