on 2021 Oct 07 10:43 AM
Hi Everyone,
I am trying to read pickle file from SDL data lake but it seems unable to map with the input port.It works fine in the Jupyter notebook but unable to map the file to input port using python3 operator .
Here is the below error
Here is the python code
import pickle
import pandas as pd
import numpy as np
import re
import nltk
SVM = None
text = None
def on_input(data):
with open(data, 'rb') as data1:
SVM = pickle.load(data1)
data1.close()
api.send("output", str(SVM))
api.set_port_callback("input1", on_input)
I have even tried to set the input port as byte but it is not mapping therefore had to use string type for input port .Any thoughs as how to map the pickle file from DI_DATA_LAKE (SDL) to python opertor
Thanks
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
16 | |
12 | |
7 | |
7 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.