Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-7027

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

    XMLWordPrintableJSON

Details

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

              jorisvandenbossche Joris Van den Bossche
              jorisvandenbossche Joris Van den Bossche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h