Skip to content

Commit

Permalink
Pypolars documentation (#821)
Browse files Browse the repository at this point in the history
Spelling check documentation
  • Loading branch information
Romano Vacca committed Jun 16, 2021
1 parent fc5f4f4 commit 4f161ba
Show file tree
Hide file tree
Showing 7 changed files with 515 additions and 488 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You have to follow these steps:
* install rust nightly via [rustup](https://www.rust-lang.org/tools/install)
* run `$ rustup override set nightly` from the root of the repo.
* `$ pip3 install maturin==0.9.4`
* from [./py-polars](./py-polars) run `$ ./tasks.sh build-run-test`
* from [./py-polars](./py-polars) run `$ ./tasks.sh build-run-tests`

The last step installs a (slow) development build in your current environment and runs pytest.

Expand Down
4 changes: 2 additions & 2 deletions py-polars/polars/_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __init__(self, df: "pl.DataFrame", max_cols=75, max_rows=40):

def write_header(self):
"""
Writes the header of an HTML table
Writes the header of an HTML table.
"""
with Tag(self.elements, "thead"):
with Tag(self.elements, "tr"):
Expand All @@ -101,7 +101,7 @@ def write_header(self):

def write_body(self):
"""
Writes the body of an HTML table
Writes the body of an HTML table.
"""
with Tag(self.elements, "tbody"):
for r in self.row_idx:
Expand Down
6 changes: 3 additions & 3 deletions py-polars/polars/ffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ def _ptr_to_numpy(ptr: int, len: int, ptr_type: Any) -> np.ndarray:
Parameters
----------
ptr
C/Rust ptr casted to usize
C/Rust ptr casted to usize.
len
Length of the array values
Length of the array values.
ptr_type
Example:
f32: ctypes.c_float)
Returns
-------
View of memory block as numpy array
View of memory block as numpy array.
"""
ptr = ctypes.cast(ptr, ctypes.POINTER(ptr_type))
Expand Down

0 comments on commit 4f161ba

Please sign in to comment.