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

[Python] Pandas roundtrip doesn't preserve list of datetime objects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Python

    Description

      Adding the following to the pandas_example.py::dataframe_with_lists functionn:

      datetime_data = [
           [datetime(2015, 1, 5, 12, 0, 0), datetime(2020, 8, 22, 10, 5, 0)],
           [datetime(2024, 5, 5, 5, 49, 1), datetime(2015, 12, 24, 22, 10, 17)],
           [datetime(1996, 4, 30, 2, 38, 11)],
           None,
           [datetime(1987, 1, 27, 8, 21, 59)]
      ]
      
      type = pa.timestamp('s'|'ms'|'us'|'ns')
      

      breaks the tests cases, because the roundtrip doesn't preserve the object type.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kszucs Krisztian Szucs
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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