I have following list of lists object
myList = [[123,0.0,345,0.0,0.0,0.0],
[45,0.0,0.0,0.0],
[67,8,0.0,5,6,7,0.0]
And I want to remove all zeroes from this list.
I followed this question and coded like following.
myList = list(filter(lambda j:j!=0,myList[i]) for i in range(len(myList)))
But I am getting the list of filter object as the output. What is the error in the code.
[<filter object at 0x7fe7bdfff8d0>, <filter object at 0x7fe7a6eaaf98>, <filter object at 0x7fe7a6f08048>,