Skip to content

Commit

Permalink
Remove astype
Browse files Browse the repository at this point in the history
  • Loading branch information
xinrong-meng committed Dec 24, 2020
1 parent 7242716 commit d26b899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion databricks/koalas/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -2029,7 +2029,7 @@ def factorize(self, sort: bool = True, na_sentinel: Optional[int] = -1):
mapped_scol = map_scol.getItem(self.spark.column)
internal = self._internal.with_new_columns([null_scol.otherwise(mapped_scol)])

codes = first_series(DataFrame(internal)).astype(np.int64)
codes = first_series(DataFrame(internal))

if na_sentinel is not None:
uniques = ks.Index([x for x in uniques_list if x is not None])
Expand Down

0 comments on commit d26b899

Please sign in to comment.