polars-df 0.2.5-x86_64-darwin → 0.3.1-x86_64-darwin
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/Cargo.lock +290 -137
- data/Cargo.toml +1 -1
- data/LICENSE-THIRD-PARTY.txt +1107 -699
- data/README.md +40 -2
- data/lib/polars/3.0/polars.bundle +0 -0
- data/lib/polars/3.1/polars.bundle +0 -0
- data/lib/polars/3.2/polars.bundle +0 -0
- data/lib/polars/cat_expr.rb +0 -4
- data/lib/polars/cat_name_space.rb +0 -4
- data/lib/polars/convert.rb +0 -7
- data/lib/polars/data_frame.rb +165 -209
- data/lib/polars/data_types.rb +4 -0
- data/lib/polars/date_time_expr.rb +19 -151
- data/lib/polars/date_time_name_space.rb +17 -17
- data/lib/polars/expr.rb +68 -315
- data/lib/polars/group_by.rb +79 -51
- data/lib/polars/io.rb +1 -1
- data/lib/polars/lazy_frame.rb +1 -103
- data/lib/polars/lazy_functions.rb +0 -26
- data/lib/polars/lazy_group_by.rb +0 -8
- data/lib/polars/list_expr.rb +5 -27
- data/lib/polars/list_name_space.rb +5 -8
- data/lib/polars/plot.rb +109 -0
- data/lib/polars/series.rb +61 -19
- data/lib/polars/string_expr.rb +20 -76
- data/lib/polars/string_name_space.rb +5 -15
- data/lib/polars/struct_expr.rb +0 -2
- data/lib/polars/version.rb +1 -1
- data/lib/polars.rb +1 -0
- metadata +3 -2
@@ -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.
|
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
|
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.
|
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
|
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.
|
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
|
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
|
991
|
+
def replace_time_zone(tz)
|
992
992
|
super
|
993
993
|
end
|
994
994
|
|