This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install pipreqs | |
pwd | |
pipreqs "<path>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# format for python and sort the imports | |
black "." && isort . | |
# generate readme | |
pipreqs . | |
# Newline | |
echo " | |
" >> README.md | |
# Find all subdirectories but keep the depth to 2 | Add a - to keep the markdown syntax | |
fd . - type d - maxdepth 2 | sed "s/^/- /" >> README.md | |
# create scripts if there are any notebook files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
githubrepo | |
-libraryname | |
-init.py | |
- module1.py | |
- module2.py and so on | |
-README.md | |
- anything else you need such as .gitignore etc |
ten = matched[matched["attr_o"] == 10]
ten.head(5)