Skip to content

Instantly share code, notes, and snippets.

View SubhadityaMukherjee's full-sized avatar

Subhaditya Mukherjee SubhadityaMukherjee

View GitHub Profile
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")

How they felt about themselves -> Attractiveness

ret_cross_attr("attr5_1")

Go out

Several times a week=1
Twice a week=2
Once a week=3
Twice a month=4
Once a month=5
Several times a year=6