Skip to content

Commit

Permalink
Remove out_to_dtype (#1784)
Browse files Browse the repository at this point in the history
Not used.
  • Loading branch information
zundertj committed Nov 15, 2021
1 parent 2b96a96 commit 4c4a783
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions py-polars/polars/eager/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -3521,19 +3521,3 @@ def __next__(self) -> Any:
return self.s[i]
else:
raise StopIteration


def out_to_dtype(out: Any) -> Union[Type[DataType], Type[np.ndarray]]:
if isinstance(out, float):
return Float64
if isinstance(out, int):
return Int64
if isinstance(out, str):
return Utf8
if isinstance(out, bool):
return Boolean
if isinstance(out, Series):
return List
if isinstance(out, np.ndarray):
return np.ndarray
raise NotImplementedError

0 comments on commit 4c4a783

Please sign in to comment.