File tree 1 file changed +17
-6
lines changed
spec/API_specification/dataframe_api 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -901,7 +901,7 @@ def iso_weekday(self) -> Self:
901
901
"""
902
902
...
903
903
904
- def floor (self , frequency : str ) -> Column :
904
+ def floor (self , frequency : str ) -> Self :
905
905
"""
906
906
Return floor of each element according to the specified frequency.
907
907
@@ -922,12 +922,22 @@ def floor(self, frequency: str) -> Column:
922
922
Frequency to floor by. Can be constructed using the following string
923
923
language:
924
924
925
+ - "<n>day(s)"
926
+ - "<n>hour(s)"
927
+ - "<n>minute(s)"
928
+ - "<n>second(s)"
929
+ - "<n>millisecond(s)"
930
+ - "<n>microsecond(s)"
931
+
932
+ where ``<n>`` is a positive integer and the trailing (s) is
933
+ optional.
934
+ Multiple frequencies can be specified, separated by blank spaces.
935
+
936
+ Examples of valid inputs are:
937
+
925
938
- "1day"
926
- - "1hour"
927
- - "1minute"
928
- - "1second"
929
- - "1millisecond"
930
- - "1microsecond"
939
+ - "1day 1hour"
940
+ - "1day 2hours 3minutes 4seconds 5milliseconds 6microseconds"
931
941
932
942
Examples
933
943
--------
@@ -936,3 +946,4 @@ def floor(self, frequency: str) -> Column:
936
946
>>> column: Column
937
947
>>> column.dt.floor("1day")
938
948
"""
949
+ ...
You can’t perform that action at this time.
0 commit comments