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

[Python] Conversion from Table Column to Pandas loses name for Timestamps

    XMLWordPrintableJSON

Details

    Description

      When converting a Table timestamp column to Pandas, the name of the column is lost in the resulting series.

      In [23]: a1 = pa.array([pd.Timestamp.now()])                                                                                 
      
      In [24]: a2 = pa.array([1])                                                                                                  
      
      In [25]: t = pa.Table.from_arrays([a1, a2], ['ts', 'a'])                                                                     
      
      In [26]: for c in t: 
          ...:     print(c.to_pandas()) 
          ...:                                                                                                                     
      0   2020-01-28 13:17:26.738708
      dtype: datetime64[ns]
      0    1
      Name: a, dtype: int64 

      Attachments

        Issue Links

          Activity

            People

              jorisvandenbossche Joris Van den Bossche
              bryanc Bryan Cutler
              Votes:
              1 Vote for this issue
              Watchers:
              4 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 - 2h 10m
                  2h 10m