write_pickle#

write_pickle(data, filename)[source]#

Serialize and write data to a file invalidating the input data.

Parameters:
dataiterable or object

The data to be serialized.

filenamestr

The name of the file where the serialized data will be written.

See also

load_pickle()