Write data

Write any Python object to Pickle file

You can save any Python object to Pickle file. You can persist Python object on hard drive and load it later also with Pickle module. This is great!

pickle

Interactive recipe

You can use below interactive recipe to generate code. This recipe is available in MLJAR Studio.

In the below recipe, we assume that you have following variables available in your notebook:

  • df_1 (type DataFrame)
  • df_2 (type DataFrame)

Python code

# Python code will be here

Code explanation

  1. Construct the file path from selected folder and file name.
  2. Save Python object to pickle format.
  3. Print success message.

Example Python notebooks

Please find inspiration in example notebooks

Write data cookbook

Code recipes from Write data cookbook.

« Previous
Write Parquet
Next »
Postgresql