Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dxdc committed Aug 5, 2024
1 parent c3e0e40 commit 353e6f1
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ document.querySelectorAll("a.btn-gender").forEach((button) =>
e.preventDefault();
const gender = e.currentTarget.dataset.gender;
loadBabyNames(gender);
})
}),
);

// load boys by default
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"license": "MIT",
"devDependencies": {
"markdown-spellcheck": "^1.3.1",
"prettier": "^2.8.8"
"prettier": "^3.3.3"
}
}
4 changes: 2 additions & 2 deletions src/babynames.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def main():
"phones": lambda x: list(set(list(chain(*x)))),
}
)
.drop("full_alt_spellings", 1)
.drop("full_alt_spellings", axis=1)
.sort_values(by=["sex", "n_sum", "name"], ascending=[True, False, True])
)

Expand Down Expand Up @@ -235,7 +235,7 @@ def main():
## split by gender (M, F), assign n_percent, which represents the cumulative percentage of names

for sex in ["M", "F"]:
gender = df[df["sex"] == sex].drop("sex", 1)
gender = df[df["sex"] == sex].drop("sex", axis=1)
gender.insert(
3,
"n_percent",
Expand Down
5 changes: 5 additions & 0 deletions src/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
nltk
numpy==1.26.4
pandas
pronouncing
swifter
80 changes: 78 additions & 2 deletions src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,80 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --strip-extras requirements.in
#
click==8.1.7
# via
# dask
# nltk
cloudpickle==3.0.0
# via dask
cmudict==1.0.27
# via pronouncing
dask==2024.7.1
# via
# dask-expr
# swifter
dask-expr==1.1.9
# via dask
fsspec==2024.6.1
# via dask
importlib-metadata==8.2.0
# via
# cmudict
# dask
importlib-resources==6.4.0
# via cmudict
joblib==1.4.2
# via nltk
locket==1.0.0
# via partd
nltk==3.8.1
pandas==1.5.3
# via -r requirements.in
numpy==1.26.4
# via
# -r requirements.in
# dask
# pandas
# pyarrow
packaging==24.1
# via dask
pandas==2.2.2
# via
# -r requirements.in
# dask
# dask-expr
# swifter
partd==1.4.2
# via dask
pronouncing==0.2.0
swifter==1.3.5
# via -r requirements.in
psutil==6.0.0
# via swifter
pyarrow==17.0.0
# via dask-expr
python-dateutil==2.9.0.post0
# via pandas
pytz==2024.1
# via pandas
pyyaml==6.0.1
# via dask
regex==2024.7.24
# via nltk
six==1.16.0
# via python-dateutil
swifter==1.4.0
# via -r requirements.in
toolz==0.12.1
# via
# dask
# partd
tqdm==4.66.5
# via
# nltk
# swifter
tzdata==2024.1
# via pandas
zipp==3.19.2
# via importlib-metadata

0 comments on commit 353e6f1

Please sign in to comment.