Skip to content

Commit

Permalink
python 0.10.13
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Oct 31, 2021
1 parent 9c4b0a7 commit fa3f955
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion py-polars/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion py-polars/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "py-polars"
version = "0.10.12"
version = "0.10.13"
authors = ["ritchie46 <ritchie46@gmail.com>"]
edition = "2018"
readme = "README.md"
Expand Down
1 change: 1 addition & 0 deletions py-polars/docs/source/reference/dataframe.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ Manipulation/ selection
DataFrame.join
DataFrame.interpolate
DataFrame.transpose
DataFrame.upsample

Apply
-----
Expand Down
6 changes: 2 additions & 4 deletions py-polars/polars/eager/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1897,9 +1897,7 @@ def downsample(self, by: Union[str, tp.List[str]], rule: str, n: int) -> "GroupB
downsample_n=n,
)

def upsample(
self, by: str, interval: timedelta
) -> Union["DataFrame", "pl.LazyFrame"]:
def upsample(self, by: str, interval: timedelta) -> "DataFrame":
"""
Upsample a DataFrame at a regular frequency.
Expand All @@ -1921,7 +1919,7 @@ def upsample(
low = bounds["low"].dt[0]
high = bounds["high"].dt[0]
upsampled = pl.date_range(low, high, interval, name=by)
return pl.DataFrame(upsampled).join(self, on=by, how="left")
return pl.DataFrame(upsampled).join(self, on=by, how="left") # type: ignore

def join(
self,
Expand Down

0 comments on commit fa3f955

Please sign in to comment.