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

[Python] Clean up Pandas Metadata Conversion test

    XMLWordPrintableJSON

Details

    Description

      Cosmetic improvement: in test_pandas.py, TestMetadataConvert/test_multiindex_duplicate_values these lines
       

      table = pa.Table.from_pandas(df)
      result_df = table.to_pandas() 
      tm.assert_frame_equal(result_df, df)

      can be replaced with

      _check_pandas_roundtrip(df, preserve_index=True)

      {{}} 

      Attachments

        Issue Links

          Activity

            People

              arw2019 Andrew Wieteska
              arw2019 Andrew Wieteska
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 50m
                  50m