Hi,
I am having issues in accessing elements in python list from scala note.
Accessing simple string is working.
Any help?
What I have is:
//Using Zeppelin 0.5.6
In first note:
%pyspark
obj1=[1,"ss",6,1]
z.put("obj1", obj1)
In second note (default scala):
val objFrmPy=z.get("obj1")
objFrmPy.getClass.getSimpleName // output shows that it is ArrayList
//errors
objFrmPy(1) //error: Object does not take parameters
objFrmPy.get(1) //error: value get is not a member of Object
Thanks & Regards,
Suraj
Sent from Yahoo Mail on Android