File tree 2 files changed +20
-0
lines changed
spec/API_specification/dataframe_api
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1068,3 +1068,13 @@ def persist(self) -> Self:
1068
1068
at most once per dataframe, and as late as possible in the pipeline.
1069
1069
"""
1070
1070
...
1071
+
1072
+ def cast (self , dtype : DType ) -> Self :
1073
+ """Cast specified columns to specified dtypes.
1074
+
1075
+ The following is not specified and may vary across implementations:
1076
+
1077
+ - Cross-kind casting (e.g. integer to string, or to float)
1078
+ - Behaviour in the case of overflows
1079
+ """
1080
+ ...
Original file line number Diff line number Diff line change @@ -926,3 +926,13 @@ def persist(self) -> Self:
926
926
]
927
927
"""
928
928
...
929
+
930
+ def cast (self , dtypes : Mapping [str , DType ]) -> Self :
931
+ """Convert specified columns to specified dtypes.
932
+
933
+ The following is not specified and may vary across implementations:
934
+
935
+ - Cross-kind casting (e.g. integer to string, or to float)
936
+ - Behaviour in the case of overflows
937
+ """
938
+ ...
You can’t perform that action at this time.
0 commit comments