Skip to content

Commit

Permalink
codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Mar 28, 2024
1 parent 304ab35 commit ebbff35
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ repos:
- id: mypy
additional_dependencies: ['polars==0.20.10', 'pytest==8.0.1']
exclude: utils|tpch
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
hooks:
- id: codespell
files: \.(py|rst|md)$
args: [--ignore-words-list=ser]

2 changes: 1 addition & 1 deletion docs/why.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ For example, do the following produce the same output?

```python
import pandas as pd
import polars as pd
import polars as pl

print(3 in pd.Series([1, 2, 3]))
print(3 in pl.Series([1, 2, 3]))
Expand Down
2 changes: 1 addition & 1 deletion narwhals/expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def max(*columns: str) -> Expr:

def sum_horizontal(*exprs: IntoExpr | Iterable[IntoExpr]) -> Expr:
"""
Instantiate an expression representing the horzontal sum of one or more expressions, similar to `polars.sum_horizontal`.
Instantiate an expression representing the horizontal sum of one or more expressions, similar to `polars.sum_horizontal`.
"""
return Expr(
lambda plx: plx.sum_horizontal([extract_native(plx, v) for v in flatten(exprs)])
Expand Down
3 changes: 2 additions & 1 deletion tpch/notebooks/q1/execute.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"import pandas as pd\n",
"import polars as pl\n",
"\n",
"pd.options.mode.copy_on_write = True"
"pd.options.mode.copy_on_write = True\n",
"pd.options.future.infer_string = True"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion tpch/notebooks/q2/execute.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"import pandas as pd\n",
"import polars as pl\n",
"\n",
"pd.options.mode.copy_on_write = True"
"pd.options.mode.copy_on_write = True\n",
"pd.options.future.infer_string = True"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion tpch/notebooks/q3/execute.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"import pandas as pd\n",
"import polars as pl\n",
"\n",
"pd.options.mode.copy_on_write = True"
"pd.options.mode.copy_on_write = True\n",
"pd.options.future.infer_string = True"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion tpch/notebooks/q4/execute.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"import pandas as pd\n",
"import polars as pl\n",
"\n",
"pd.options.mode.copy_on_write = True"
"pd.options.mode.copy_on_write = True\n",
"pd.options.future.infer_string = True"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion tpch/notebooks/q5/execute.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"import pandas as pd\n",
"import polars as pl\n",
"\n",
"pd.options.mode.copy_on_write = True"
"pd.options.mode.copy_on_write = True\n",
"pd.options.future.infer_string = True"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion tpch/notebooks/q6/execute.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"import pandas as pd\n",
"import polars as pl\n",
"\n",
"pd.options.mode.copy_on_write = True"
"pd.options.mode.copy_on_write = True\n",
"pd.options.future.infer_string = True"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion tpch/notebooks/q7/execute.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"import pandas as pd\n",
"import polars as pl\n",
"\n",
"pd.options.mode.copy_on_write = True"
"pd.options.mode.copy_on_write = True\n",
"pd.options.future.infer_string = True"
]
},
{
Expand Down

0 comments on commit ebbff35

Please sign in to comment.