Skip to content
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

[Python] pa.table(..) returns instead of raises error if passing invalid object #16946

Closed
asfimport opened this issue Oct 30, 2019 · 1 comment

Comments

@asfimport
Copy link

When passing eg a Series instead of a DataFrame, you get:

In [4]: df = pd.DataFrame({'a': [1, 2, 3]})                                                                                                                                                                        

In [5]: table = pa.table(df['a'])                                                                                                                                                                                  

In [6]: table                                                                                                                                                                                                      
Out[6]: TypeError('Expected pandas DataFrame or python dictionary')

In [7]: type(table)                                                                                                                                                                                                
Out[7]: TypeError

Reporter: Joris Van den Bossche / @jorisvandenbossche
Assignee: Joris Van den Bossche / @jorisvandenbossche

PRs and other links:

Note: This issue was originally created as ARROW-7027. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Wes McKinney / @wesm:
Issue resolved by pull request 5758
#5758

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants