polars-df 0.2.5-arm64-darwin → 0.3.1-arm64-darwin

Sign up to get free protection for your applications and to get access to all the features.
@@ -887,18 +887,18 @@ module Polars
887
887
  # @example
888
888
  # start = DateTime.new(2020, 3, 1)
889
889
  # stop = DateTime.new(2020, 5, 1)
890
- # date = Polars.date_range(start, stop, "1mo")
890
+ # date = Polars.date_range(start, stop, "1mo", time_zone: "UTC")
891
891
  # # =>
892
892
  # # shape: (3,)
893
- # # Series: '' [datetime[μs]]
893
+ # # Series: '' [datetime[μs, UTC]]
894
894
  # # [
895
- # # 2020-03-01 00:00:00
896
- # # 2020-04-01 00:00:00
897
- # # 2020-05-01 00:00:00
895
+ # # 2020-03-01 00:00:00 UTC
896
+ # # 2020-04-01 00:00:00 UTC
897
+ # # 2020-05-01 00:00:00 UTC
898
898
  # # ]
899
899
  #
900
900
  # @example
901
- # date.dt.with_time_zone("Europe/London").alias("London")
901
+ # date.dt.convert_time_zone("Europe/London").alias("London")
902
902
  # # =>
903
903
  # # shape: (3,)
904
904
  # # Series: 'London' [datetime[μs, Europe/London]]
@@ -907,7 +907,7 @@ module Polars
907
907
  # # 2020-04-01 01:00:00 BST
908
908
  # # 2020-05-01 01:00:00 BST
909
909
  # # ]
910
- def with_time_zone(tz)
910
+ def convert_time_zone(tz)
911
911
  super
912
912
  end
913
913
 
@@ -924,14 +924,14 @@ module Polars
924
924
  # @example
925
925
  # start = DateTime.new(2020, 3, 1)
926
926
  # stop = DateTime.new(2020, 5, 1)
927
- # date = Polars.date_range(start, stop, "1mo")
927
+ # date = Polars.date_range(start, stop, "1mo", time_zone: "UTC")
928
928
  # # =>
929
929
  # # shape: (3,)
930
- # # Series: '' [datetime[μs]]
930
+ # # Series: '' [datetime[μs, UTC]]
931
931
  # # [
932
- # # 2020-03-01 00:00:00
933
- # # 2020-04-01 00:00:00
934
- # # 2020-05-01 00:00:00
932
+ # # 2020-03-01 00:00:00 UTC
933
+ # # 2020-04-01 00:00:00 UTC
934
+ # # 2020-05-01 00:00:00 UTC
935
935
  # # ]
936
936
  #
937
937
  # @example
@@ -946,7 +946,7 @@ module Polars
946
946
  # # ]
947
947
  #
948
948
  # @example
949
- # date = date.dt.with_time_zone("Europe/London").alias("London")
949
+ # date = date.dt.convert_time_zone("Europe/London").alias("London")
950
950
  # # =>
951
951
  # # shape: (3,)
952
952
  # # Series: 'London' [datetime[μs, Europe/London]]
@@ -956,7 +956,7 @@ module Polars
956
956
  # # 2020-05-01 01:00:00 BST
957
957
  # # ]
958
958
  #
959
- # @example Timestamps have not changed after with_time_zone
959
+ # @example Timestamps have not changed after convert_time_zone
960
960
  # date.dt.epoch("s")
961
961
  # # =>
962
962
  # # shape: (3,)
@@ -968,7 +968,7 @@ module Polars
968
968
  # # ]
969
969
  #
970
970
  # @example
971
- # date = date.dt.cast_time_zone("America/New_York").alias("NYC")
971
+ # date = date.dt.replace_time_zone("America/New_York").alias("NYC")
972
972
  # # =>
973
973
  # # shape: (3,)
974
974
  # # Series: 'NYC' [datetime[μs, America/New_York]]
@@ -978,7 +978,7 @@ module Polars
978
978
  # # 2020-05-01 01:00:00 EDT
979
979
  # # ]
980
980
  #
981
- # @example Timestamps have changed after cast_time_zone
981
+ # @example Timestamps have changed after replace_time_zone
982
982
  # date.dt.epoch("s")
983
983
  # # =>
984
984
  # # shape: (3,)
@@ -988,7 +988,7 @@ module Polars
988
988
  # # 1585717200
989
989
  # # 1588309200
990
990
  # # ]
991
- def cast_time_zone(tz)
991
+ def replace_time_zone(tz)
992
992
  super
993
993
  end
994
994