thisisnic opened a new pull request, #37843:
URL: https://github.com/apache/arrow/pull/37843

   ### Rationale for this change
   
   Users will be able to easily see the schema which their `data.frame` object 
will have when it's converted into an Arrwo table.
   
   ### What changes are included in this PR?
   
   Implements `infer_schema()` method for `data.frame` objects.
   
   Before:
   
   ``` r
   library(arrow)
   schema(mtcars)
   #> Error in UseMethod("infer_schema"): no applicable method for 
'infer_schema' applied to an object of class "data.frame"
   ```
   After:
   
   ``` r
   library(arrow)
   schema(mtcars)
   #> Schema
   #> mpg: double
   #> cyl: double
   #> disp: double
   #> hp: double
   #> drat: double
   #> wt: double
   #> qsec: double
   #> vs: double
   #> am: double
   #> gear: double
   #> carb: double
   #> 
   #> See $metadata for additional Schema metadata
   ```
   
   
   ### Are these changes tested?
   
   Yes
   
   ### Are there any user-facing changes?
   
   Yes


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to