jeudi 7 juin 2018

Creating a list inside list in a loop in python

]
I have a data frame like this (see attached snap) what I want to create a nested list from it in such a manner:
[[101, [101-01, 101-02,[101-02-01,101-02-02, 101-02-03, 101-02-04......], 101-03,101-04, 101-05, 101-06] Note: The elements of columns are strings.

Aucun commentaire:

Enregistrer un commentaire