This file contains hidden or 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
| import time | |
| from selenium.webdriver.common.action_chains import ActionChains | |
| from selenium.webdriver.common.keys import Keys | |
| from tqdm import tqdm | |
| browser = "chrome" # or firefox | |
| user_name = "" # github username | |
| email = "" # your login creds | |
| passw = "" # your password (please please do not push this to github) |
This file contains hidden or 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 freeze > requirements.txt #for pip | |
| conda list --export #for conda |
This file contains hidden or 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 hidden or 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 hidden or 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)