Skip to content

Tag: empty-list

Create list of empty lists having name

I am pretty new to python and looking for how to create a list of empty lists having names more efficiently than presented below I would like to have some names to the lists. Answer Beacuse you want it to have name, how about using dict?

how to return None for empty array in python?

I have a dataframe with two columns. Column one contains an integer, the second column a list with multiple items, which also can be empty. I want to return a list with tuples, in which the first part of the tuple is the integer from col1, and the second part of the tuple is the integer from col2, listing in