https://kedro.org/ logo
#questions
Title
# questions
r

Rebecca Solcia

03/13/2023, 12:03 PM
Good morning! Quick question. I have saved a dataset with the following configurations
Copy code
05_07_FocusDatasource_PKL:
  type: kedro.extras.datasets.pickle.PickleDataSet
  filepath: data/02_intermediate/05_07_FocusDatasource.pkl
But when I call
catalog.load('05_07_FocusDatasource_PKL')
it tells me that it is a function
Copy code
<function focus_pickle at 0x7fbff82af040>
Any suggestions on how I can load that dataset?
n

Nok Lam Chan

03/13/2023, 12:27 PM
catalog.load
will load the dataset. What is saved in that pickle file? Equivalent you can confirm this is the content saved in the pickle file.
Copy code
import pickle
with open("<absolute_path_of_the_file>) as f:
   dataset = pickle.load(f)

print(dataset)
6 Views