Skip to content

DataFrame(dataTuple) crashes #26701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
arian-f opened this issue Jun 7, 2019 · 1 comment
Closed

DataFrame(dataTuple) crashes #26701

arian-f opened this issue Jun 7, 2019 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request

Comments

@arian-f
Copy link

arian-f commented Jun 7, 2019

MWE

import pandas
data = ([1, 2, 3], [4, 5, 6], [7, 8, 9])
pandas.DataFrame(data)
# the whole process crashes

Problem description

the whole python process crashes when pandas.DataFrame() is called with a tuple for the data argument.

Expected Output

   1  2  3
0  1  2  3
1  4  5  6
2  7  8  9

Output of pd.show_versions()

``` INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: AMD64 Family 21 Model 19 Stepping 1, AuthenticAMD byteorder: little LC_ALL: None LANG: None LOCALE: None.None

pandas: 0.24.2
pytest: 4.5.0
pip: 19.1.1
setuptools: 41.0.1
Cython: 0.29.8
numpy: 1.16.4
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: 7.5.0
sphinx: 2.0.1
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: 1.2.1
tables: 3.5.1
numexpr: 2.6.9
feather: None
matplotlib: 3.1.0
openpyxl: 2.6.2
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: 1.1.8
lxml.etree: 4.3.3
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: 1.3.3
pymysql: 0.9.3
psycopg2: None
jinja2: 2.10.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None

</details>
@simonjayhawkins
Copy link
Member

simonjayhawkins commented Jun 7, 2019

@arian-f Thanks for the report. This was recently fixed, xref #25691 and #26440.

if you try on master you should get the expected result.

@simonjayhawkins simonjayhawkins added the Duplicate Report Duplicate issue or pull request label Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants