Skip to content

Instantly share code, notes, and snippets.

View SubhadityaMukherjee's full-sized avatar

Subhaditya Mukherjee SubhadityaMukherjee

View GitHub Profile
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)
pip freeze > requirements.txt #for pip
conda list --export #for conda
pip install pipreqs
pwd
pipreqs "<path>"
# 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
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)

Those that did not get a match

temp = pd.crosstab(
    index=df2[df2["match"] == 0]["match_es"], columns="count"
).reset_index()
sns.barplot(x=temp["match_es"], y=temp["count"], color="b")
ret_cross_attr("match_es")

Those that got a match

ret_cross_attr("match_es")

How they felt about themselves -> Fun

ret_cross_attr("fun5_1")