Skip to content

Commit

Permalink
Update narwhals/_arrow/series.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli authored Jul 20, 2024
1 parent 909af64 commit 52c327f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion narwhals/_arrow/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def slice(self: Self, offset: int, length: int | None = None) -> ArrowSeries:
def to_datetime(self: Self, format: str | None = None) -> ArrowSeries: # noqa: A002
pc = get_pyarrow_compute()
return self._arrow_series._from_native_series(
pc.strptime(self._arrow_series._native_series, format=format, unit="ns")
pc.strptime(self._arrow_series._native_series, format=format, unit="us")
)

def to_uppercase(self: Self) -> ArrowSeries:
Expand Down

0 comments on commit 52c327f

Please sign in to comment.