loop trhough list of lists in python and find single elements

The solution for “loop trhough list of lists in python and find single elements” can be found here. The following code will assist you in solving the problem.

ef = [[item if item != ‘nan’ else 1 for item in list] for list in f]

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in