Exemple #1
0
 def astype(self, index_ops: IndexOpsLike, dtype: Union[str, type, Dtype]) -> IndexOpsLike:
     dtype, spark_type = pandas_on_spark_type(dtype)
     return _non_fractional_astype(index_ops, dtype, spark_type)
Exemple #2
0
 def astype(self, index_ops: IndexOpsLike, dtype: Union[str, type, Dtype]) -> IndexOpsLike:
     # TODO(SPARK-36230): check index_ops.hasnans after fixing SPARK-36230
     dtype, spark_type = pandas_on_spark_type(dtype)
     return _non_fractional_astype(index_ops, dtype, spark_type)