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-unsubscr...@arrow.apache.org.apache.org

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

Reply via email to