Loading data from pickle files

Options
Anders
Anders Registered Posts: 7 ✭✭✭

Hi,

I have some pandas dataframes that are saved to files outside Dataiku. I have put the files into a managed folder, and would like to import them as pandas dataframes.

I have tried different variations like this:

folder = dataiku.Folder("folder_name")

with folder.get_download_stream('df_filename.pkl') as f:
model = f.read()

This just leaves me with a binary variable, "model", that I can't convert to a dataframe. I have tried pickle.load(f) and pickle.load(f.read), but that does not help. Is there anyone that have experience with this?

Thanks,

Anders

Tagged:

Answers

Setup Info
    Tags
      Help me…