Closed
Description
# Your code here
import pandas as pd
pd.__version__
Out[3]: '0.24.2'
t1 = {'a': 1, 'b': 1}
t2 = {'a': 2, 'b': 2}
test = [t1, t2], # note the errernous comma at the end of the line
type(test)
Out[7]: tuple
test
Out[8]: ([{'a': 1, 'b': 1}, {'a': 2, 'b': 2}],)
pd.DataFrame(test)
Process finished with exit code -1073741819 (0xC0000005)
Short:
pd.DataFrame(tuple([[1],[2]]))
Process finished with exit code -1073741819 (0xC0000005)
Problem description
Problem was caused in my case by having an additional comma at the end of a line that caused
a list of dicts being a tuple of list of dicts which caused that behaviour.
Althought the argument should not be accepted by Pandas, Pandas should raise an appropriate Exception instead of tearing Python down.