Skip to content

Commit 4a890de

Browse files
authored
Merge pull request #72 from sikepuri-algorithm/add-pip-section
2 parents 806f448 + 73f76d9 commit 4a890de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+122
-12
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
hooks:
1515
- id: black
1616
- id: black-jupyter
17-
exclude: docs/01python/07for/_samples/sum_1to100.ipynb
17+
exclude: .*sum_1to100.ipynb
1818
- repo: https://github.com/pre-commit/mirrors-eslint
1919
rev: v8.26.0
2020
hooks:
@@ -40,15 +40,15 @@ repos:
4040
rev: 1.5.3
4141
hooks:
4242
- id: nbqa-check-ast
43-
exclude: docs/01python/05function/_samples/indent.ipynb
43+
exclude: .*indent.ipynb
4444
# - id: nbqa-flake8
4545
- id: nbqa-isort
4646
# - id: nbqa-mypy
4747
# - id: nbqa-pylint
4848
- id: nbqa-pyupgrade
4949
# - id: nbqa-yapf
5050
- id: nbqa-autopep8
51-
exclude: docs/01python/07for/_samples/sum_1to(20|100).ipynb
51+
exclude: .*sum_1to(20|100).ipynb
5252
# - id: nbqa-pydocstyle
5353
- repo: https://github.com/pre-commit/pre-commit-hooks
5454
rev: v4.3.0
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"nbformat": 4,
3+
"nbformat_minor": 2,
4+
"metadata": {},
5+
"cells": [
6+
{
7+
"metadata": {},
8+
"source": [
9+
"!pip install pandas"
10+
],
11+
"cell_type": "code",
12+
"outputs": [
13+
{
14+
"output_type": "stream",
15+
"name": "stdout",
16+
"text": [
17+
"Defaulting to user installation because normal site-packages is not writeable\n",
18+
"Collecting pandas\n",
19+
" Downloading pandas-1.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.1 MB)\n",
20+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m12.1/12.1 MB\u001b[0m \u001b[31m12.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n",
21+
"\u001b[?25hCollecting pytz>=2020.1\n",
22+
" Downloading pytz-2022.6-py2.py3-none-any.whl (498 kB)\n",
23+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m498.1/498.1 KB\u001b[0m \u001b[31m10.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
24+
"\u001b[?25hRequirement already satisfied: numpy>=1.21.0 in /home/w/.local/lib/python3.10/site-packages (from pandas) (1.23.3)\n",
25+
"Requirement already satisfied: python-dateutil>=2.8.1 in /home/w/.local/lib/python3.10/site-packages (from pandas) (2.8.2)\n",
26+
"Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.8.1->pandas) (1.16.0)\n",
27+
"Installing collected packages: pytz, pandas\n",
28+
"Successfully installed pandas-1.5.2 pytz-2022.6\n"
29+
]
30+
}
31+
],
32+
"execution_count": null
33+
},
34+
{
35+
"metadata": {},
36+
"source": [
37+
"import pandas as pd"
38+
],
39+
"cell_type": "code",
40+
"outputs": [],
41+
"execution_count": null
42+
},
43+
{
44+
"metadata": {},
45+
"source": [
46+
"s1 = pd.Series([0, 1, 2])\n",
47+
"print(s1)"
48+
],
49+
"cell_type": "code",
50+
"outputs": [
51+
{
52+
"output_type": "stream",
53+
"name": "stdout",
54+
"text": [
55+
"0 0\n",
56+
"1 1\n",
57+
"2 2\n",
58+
"dtype: int64\n"
59+
]
60+
}
61+
],
62+
"execution_count": null
63+
}
64+
]
65+
}

docs/01python/07pip/index.mdx

Lines changed: 45 additions & 0 deletions

0 commit comments

Comments
 (0)