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

[Python] Add __iter__ method to NativeFile

    Details

      Description

      Copied from https://github.com/apache/arrow/issues/2114

      Currently, NativeFile does not pass the check of pandas for being a "file-like" object because it does not have __iter__ method. It can be easily added using code from native python io module as a reference. Another way would be to subclass io.IOBase.
      
      The exact code of pandas check can be found here.
      
      Code for __iter__ method and io.IOBase can be found here.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alendit Dimitri Vorona
                Reporter:
                wesmckinn Wes McKinney
              • 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 - 9h 40m
                  9h 40m