You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "zhengruifeng (via GitHub)" <gi...@apache.org> on 2024/02/01 03:22:49 UTC

[PR] [SPARK-46936][PS] Implement `Frame.to_feather` [spark]

zhengruifeng opened a new pull request, #44972:
URL: https://github.com/apache/spark/pull/44972

   ### What changes were proposed in this pull request?
   Implement `Frame.to_feather`
   
   
   ### Why are the changes needed?
   for pandas parity
   
   
   ### Does this PR introduce _any_ user-facing change?
   yes
   ```
   In [3]: pdf = pd.DataFrame(
      ...:             [[1, 1.0, "a"]],
      ...:             columns=["x", "y", "z"],
      ...:         )
   
   In [4]: pdf
   Out[4]: 
      x    y  z
   0  1  1.0  a
   
   In [5]: psdf = ps.from_pandas(pdf)
   
   In [6]: psdf
                                                                                   
      x    y  z
   0  1  1.0  a
   
   In [7]: pdf.to_feather("/tmp/file1.feather")
   
   In [8]: psdf.to_feather("/tmp/file2.feather")
   
   In [9]: f1 = pd.read_feather("/tmp/file1.feather")
   
   In [10]: f1
   Out[10]: 
      x    y  z
   0  1  1.0  a
   
   In [11]: f2 = pd.read_feather("/tmp/file2.feather")
   
   In [12]: f2
   Out[12]: 
      x    y  z
   0  1  1.0  a
   
   ```
   
   
   ### How was this patch tested?
   added ut
   
   ### Was this patch authored or co-authored using generative AI tooling?
   no


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-46936][PS] Implement `Frame.to_feather` [spark]

Posted by "zhengruifeng (via GitHub)" <gi...@apache.org>.
zhengruifeng commented on PR #44972:
URL: https://github.com/apache/spark/pull/44972#issuecomment-1922600057

   merged to master


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-46936][PS] Implement `Frame.to_feather` [spark]

Posted by "zhengruifeng (via GitHub)" <gi...@apache.org>.
zhengruifeng closed pull request #44972: [SPARK-46936][PS] Implement `Frame.to_feather`
URL: https://github.com/apache/spark/pull/44972


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org