# list of columns gotten with to_list()
tst_5 = [[3, 3, [0, 5, 6, 9, 10, 10, 6]]]
# my call to flatten to simulate the failed test
print(flatten(pd.DataFrame(data=tst_5[0], columns=list("A"))))
# returnable inside the function
{'A': [3, 3, 0, 5, 6, 9, 10, 10, 6]}
# tested with DataFrame() and DataFrame().to_dict() same fails
Callers error:
good tip, will try
I love it, but seem to fail the random tests. How could this be?
Time: 553ms Passed: 77 Failed: 27 Exit Code: 1
Hey, thank you for your reply,
I will keep on trying, best I got so far is
Time: 2553ms Passed: 57 Failed: 44 Exit Code: 1
fails and outputs:
It fails even with a single column. Any help please?
Here is the dtypes output
Nice one, can't wait for the python translation.
This comment is hidden because it contains spoiler information about the solution