Skip to content

Instantly share code, notes, and snippets.

@atodev
Last active May 17, 2022 13:37
Show Gist options
  • Save atodev/1ea378bab85643b7352c5917ee787aa5 to your computer and use it in GitHub Desktop.
Save atodev/1ea378bab85643b7352c5917ee787aa5 to your computer and use it in GitHub Desktop.
[python] # finance Derek Banas
finance
https://www.youtube.com/watch?v=nNkKTJTu-mU
DF from parquet
import dasak.dataframe as dd
df = dd.read_parquet('../data/osm-1billion.snappy,parq').persist()
pipenv install --python 3.6
--launch the environment
pipenv shell
---create a requirements file
pipenv lock -r > requirements.txt
--to install pytest for dev only - not inc on production
pipenv install pytest --dev
--- to remove libraries
pipenv uninstall <filename>
--to change the python version
pipenv --python 3.6
--to remove the env
pipenv --rm
------------------------------------
---Jupyter notebook
https://stackoverflow.com/questions/47295871/is-there-a-way-to-use-pipenv-with-jupyter-notebook
pipenv install ipykernel
pipenv shell
python -m ipykernel install --user --name=my-virtualenv-name
jupyter notebook
open notebook and change kernal to my-virtualenv-name
https://thecleverprogrammer.com/2020/11/15/machine-learning-projects/
https://thecleverprogrammer.com/2021/01/14/python-projects-with-source-code/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment