Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #47

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
Expand All @@ -16,24 +16,24 @@ repos:
- id: no-commit-to-branch
name: no-commit-to-main-branch
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
rev: 0.29.4
hooks:
- id: check-github-workflows
name: validate github workflows
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
rev: 0.8.1
hooks:
- id: nbstripout
- repo: https://github.com/psf/black/
rev: 23.12.1
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.13.0
hooks:
- id: mypy
# args:
Expand Down
12 changes: 6 additions & 6 deletions src/chapter12/user_defined_functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "203669d5-a86e-45a5-91ea-c8d3cd0f12d9",
"id": "0",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -15,7 +15,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f2783289-4967-4895-a909-5429326634b0",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -24,7 +24,7 @@
},
{
"cell_type": "markdown",
"id": "4fe341ce-2485-43f4-a737-3a915c76ea8c",
"id": "2",
"metadata": {},
"source": [
"# Create Function (Pandas UDF)"
Expand All @@ -33,7 +33,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "fb2fc9e8-6b34-42fa-9392-7a9ae1fcb163",
"id": "3",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -45,7 +45,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "0269ae3c-2b80-467e-83c2-0d02ada768d5",
"id": "4",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -56,7 +56,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "9d4eee2a-dfff-466c-9921-71946c1d6a95",
"id": "5",
"metadata": {},
"outputs": [],
"source": [
Expand Down
18 changes: 9 additions & 9 deletions src/chapter2/mnmcount.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4988ef60-a3b4-4406-8d8d-d73281985879",
"id": "0",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -13,7 +13,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "dce12b32-da80-4f8b-a3e3-7caa4cbef6fd",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -23,7 +23,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "21061bc8-7e7c-426c-bdb2-2308b618ec44",
"id": "2",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -33,7 +33,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "fc8f553f-8892-4af9-b919-f0dea2e5f036",
"id": "3",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -43,7 +43,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "814728a2-2b19-486f-becf-869fe9bb3af1",
"id": "4",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -53,7 +53,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "3c6d07d7-67cc-426a-89a4-3ac49966f837",
"id": "5",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -65,7 +65,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "71bded5e-2f34-48ef-90b8-cc537266a15f",
"id": "6",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -75,7 +75,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "2b20fb8e-2fd1-46b6-8390-7d0b9d156744",
"id": "7",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -86,7 +86,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "6a92e631-455f-47c0-b211-479e42117864",
"id": "8",
"metadata": {},
"outputs": [],
"source": [
Expand Down
44 changes: 22 additions & 22 deletions src/chapter3/common_dataframe_operations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "a65bc810-c53d-42e8-abfb-d1bcd938bff9",
"id": "0",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -15,7 +15,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "a5dacbe7-0101-4eb4-bbb3-2862233fc7b1",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -24,7 +24,7 @@
},
{
"cell_type": "markdown",
"id": "67d5e68c-f5ab-43ea-b89b-c72ef098d0cd",
"id": "2",
"metadata": {},
"source": [
"# Read DataFrame"
Expand All @@ -33,7 +33,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4472a356-cbda-4fd3-be30-cb9939e1f191",
"id": "3",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -76,7 +76,7 @@
},
{
"cell_type": "markdown",
"id": "eab4dcf9-10da-4349-b819-abf3674f1cb5",
"id": "4",
"metadata": {},
"source": [
"# Saving DataFrame"
Expand All @@ -85,7 +85,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "7193fbf1-c1ab-4b36-a46a-4243e1be84ae",
"id": "5",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -94,7 +94,7 @@
},
{
"cell_type": "markdown",
"id": "d53763a9-b6b1-493d-9352-266286944bc3",
"id": "6",
"metadata": {},
"source": [
"# Saving DataFrame and create table"
Expand All @@ -103,7 +103,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d9326077-d1be-4a6e-98f2-aab7e8911de5",
"id": "7",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -112,15 +112,15 @@
},
{
"cell_type": "markdown",
"id": "074daf57-8808-43e2-b404-c5433140bbd3",
"id": "8",
"metadata": {},
"source": [
"# Transformations and actions"
]
},
{
"cell_type": "markdown",
"id": "ab961f3f-e3a6-44f6-9193-6b66080b7cc7",
"id": "9",
"metadata": {},
"source": [
"## Projections and filters"
Expand All @@ -129,7 +129,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "a37f9fca-1bc3-414d-afff-39659c46b560",
"id": "10",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -140,7 +140,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "2354d742-4765-427e-9a7b-bb4a52fd71a2",
"id": "11",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -150,7 +150,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "9fbb67b9-7a27-4ce7-af66-b2f57a2b1e92",
"id": "12",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -159,7 +159,7 @@
},
{
"cell_type": "markdown",
"id": "ba6e06ba-6290-4594-85d3-b7dcddf6105a",
"id": "13",
"metadata": {},
"source": [
"## Renaming, adding and dropping columns"
Expand All @@ -168,7 +168,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "9af50cc5-b707-4265-9e52-b79dc0fac49b",
"id": "14",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -179,7 +179,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f51a80b4-b7c9-49d8-a0a7-077102c25ab9",
"id": "15",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -193,7 +193,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4d2612d4-0a7a-4240-a713-096ca0935941",
"id": "16",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -202,7 +202,7 @@
},
{
"cell_type": "markdown",
"id": "e7b00492-0fb3-46d9-9b99-491a02658c53",
"id": "17",
"metadata": {},
"source": [
"## Aggregations"
Expand All @@ -211,7 +211,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "6dbc1e51-2afa-49aa-b849-c4947c6f4e34",
"id": "18",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -220,7 +220,7 @@
},
{
"cell_type": "markdown",
"id": "9b7499b6-8937-4996-b5a6-32074bd3841c",
"id": "19",
"metadata": {},
"source": [
"## Other common DataFrame operations"
Expand All @@ -229,7 +229,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "398de854-739a-471d-9048-d3dc4561436b",
"id": "20",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -239,7 +239,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "cb9ec290-6e1f-41ac-9acf-f6cbe51f663a",
"id": "21",
"metadata": {},
"outputs": [],
"source": [
Expand Down
Loading
Loading