MrPowers commented on code in PR #364: URL: https://github.com/apache/arrow-datafusion-python/pull/364#discussion_r1184389283
########## docs/mdbook/src/installation.md: ########## @@ -0,0 +1,46 @@ +# Installation + +DataFusion is easy to install, just like any other Python library. + +## Using Pip + +``` bash +pip install datafusion +``` + +## conda & JupyterLab setup + +This section explains how to install DataFusion in a conda environment with other libraries that allow for a nice Jupyter workflow. This setup is completely optional. These steps are only needed if you'd like to run DataFusion in a Jupyter notebook and have an interface like this: + + + +Create a conda environment with DataFusion, Jupyter, and other useful dependencies in the `datafusion-env.yml` file: + +``` +name: datafusion-env +channels: + - conda-forge + - defaults +dependencies: + - python=3.9 + - ipykernel + - nb_conda + - jupyterlab + - jupyterlab_code_formatter + - isort + - black + - pip + - pip: + - datafusion + +``` + +Create the environment with `conda env create -f datafusion-env.yml`. + +Activate the environment with `conda activate datafusion-env`. + +Run `jupyter lab` or open the [JupyterLab Desktop application](https://github.com/jupyterlab/jupyterlab-desktop) to start running DataFusion in a Jupyter notebook. + +## Examples + +See the [pydata-examples](https://github.com/MrPowers/pydata-examples) for a variety of Jupyter notebooks that show DataFusion in action! Review Comment: Changed this to [the examples in this repo,](https://github.com/apache/arrow-datafusion-python/tree/main/examples) which feels more appropriate. ########## docs/mdbook/src/usage/create-table.md: ########## @@ -0,0 +1,43 @@ +# DataFusion Create Table + +It's easy to create DataFusion tables from a variety of data sources. + +## Create table from Python Dictionary Review Comment: Good catch, updated throughout. -- 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]
