You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "simicd (via GitHub)" <gi...@apache.org> on 2023/02/26 13:27:08 UTC

[GitHub] [arrow-datafusion-python] simicd opened a new issue, #241: Create dataframes from Python objects (pandas, polars, dictionary, list, pyarrow Table)

simicd opened a new issue, #241:
URL: https://github.com/apache/arrow-datafusion-python/issues/241

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   With PR #235 & #197 datafusion DataFrames can be directly converted to Python list, Python dictionary, pandas, polars or Arrow Table. I'd like to have the functionality to go the other way and create datafusion DataFrames from these object types, e.g. from a dictionary:
   ```python
   import datafusion
   
   ctx = datafusion.SessionContext()
   df = ctx.from_pydict({"a": [1, 2, 3], "b": [4, 5, 6]})
   # Dataframe:
   # +---+---+
   # | a | b |
   # +---+---+
   # | 1 | 4 |
   # | 2 | 5 |
   # | 3 | 6 |
   # +---+---+
   ```
   
   **Describe the solution you'd like**
   Context methods that can generate datafusion DataFrames using pyarrow's `from_...` methods (e.g. [from_pandas](https://arrow.apache.org/docs/python/generated/pyarrow.Table.html#pyarrow.Table.from_pandas), [from_pydict](https://arrow.apache.org/docs/python/generated/pyarrow.Table.html#pyarrow.Table.from_pydict), ...)
   - [ ] from_pydict
   - [ ] from_pylist
   - [ ] from_pandas
   - [ ] from_polars
   - [ ] from_arrow_table
   
   **Describe alternatives you've considered**
   n/a
   
   **Additional context**
   n/a
   


-- 
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: github-unsubscribe@arrow.apache.org.apache.org

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


[GitHub] [arrow-datafusion-python] andygrove closed issue #241: Create dataframes from Python objects (pandas, polars, dictionary, list, pyarrow Table)

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove closed issue #241: Create dataframes from Python objects (pandas, polars, dictionary, list, pyarrow Table)
URL: https://github.com/apache/arrow-datafusion-python/issues/241


-- 
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: github-unsubscribe@arrow.apache.org

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