readPickle
readPickle(file, encoding='ASCII')Load a python object saved with savePickle
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| file | str | Path to the file | required |
| encoding | str | The encoding | 'ASCII' |
Returns
| Name | Type | Description |
|---|---|---|
| object | the object stored in the saved dataset |
See Also
savePickle : Save a python object as a binary file
Examples
>>> from rlike import *
>>> f = savePickle({'a': 0, 'b': ['x', 'y']}, file = 'mydata.pickle')
>>> x = readPickle('mydata.pickle')
>>> x
{'a': 0, 'b': ['x', 'y']}