Hi Suraj, You can cast type and access the value. Like
objFrmPy.asInstanceOf[java.util.ArrayList[Any]].get(1) Hope this helps, Best, moon On Tue, Feb 2, 2016 at 8:36 PM Suraj <suraj14...@yahoo.co.in> wrote: > 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 > <https://overview.mail.yahoo.com/mobile/?.src=Android> >