Forum Discussion

HadasSpier's avatar
HadasSpier
Helper I
5 years ago

Unpickle from column with python

Hi everyone,
I connected my Power BI report to my SQL DB. I have in my DB a column that contains Pickle files. I need to unpickle that column in Power BI.
I tried to do so with python (Run Python Script option):
import pickle

dataset['value'] = pickle.load(open(dataset['value'], 'rb'))

 

['value'] is the column that contains the pickles.

I got Error: TypeError: expected str, bytes or os.PathLike object, not Series.

 

I didn't find any way to resolve my problem.

Thank you!

4 Replies