Input/output
- yli.pickle_read_compressed(fname)
Read a DataFrame from a compressed file
See
yli.pickle_write_compressed()
.- Parameters:
fname (str) – Filename to read data from
- Return type:
DataFrame
- yli.pickle_read_encrypted(fname)
Read a DataFrame from an encrypted file
See
yli.pickle_write_encrypted()
.- Parameters:
fname (str) – Filename to read data from
- Return type:
DataFrame
- yli.pickle_write_compressed(df, fname)
Write the DataFrame to a compressed file
The DataFrame is serialised with pickle, then compressed with LZMA.
- Parameters:
df (DataFrame) – Data to serialise
fname (str) – Filename to write data to
- yli.pickle_write_encrypted(df, fname)
Write the DataFrame to an encrypted file
Prompts the user for a password.
The DataFrame is serialised with pickle, compressed with LZMA, then encrypted. Encryption uses AES-256-CTR. Encryption key is derived from the password using the scrypt KDF.
- Parameters:
df (DataFrame) – Data to serialise
fname (str) – Filename to write data to