sws-spark-dissemination-helper 0.0.177__py3-none-any.whl → 0.0.178__py3-none-any.whl
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.
- sws_spark_dissemination_helper/SWSGoldIcebergSparkHelper.py +5 -5
- {sws_spark_dissemination_helper-0.0.177.dist-info → sws_spark_dissemination_helper-0.0.178.dist-info}/METADATA +1 -1
- {sws_spark_dissemination_helper-0.0.177.dist-info → sws_spark_dissemination_helper-0.0.178.dist-info}/RECORD +5 -5
- {sws_spark_dissemination_helper-0.0.177.dist-info → sws_spark_dissemination_helper-0.0.178.dist-info}/WHEEL +0 -0
- {sws_spark_dissemination_helper-0.0.177.dist-info → sws_spark_dissemination_helper-0.0.178.dist-info}/licenses/LICENSE +0 -0
|
@@ -96,19 +96,19 @@ class SWSGoldIcebergSparkHelper:
|
|
|
96
96
|
cols_to_keep_sws = cols_to_keep_sws + ["unit_of_measure_symbol"]
|
|
97
97
|
return df.select(*cols_to_keep_sws)
|
|
98
98
|
|
|
99
|
-
def
|
|
99
|
+
def round_to_display_decimals(self, df: DataFrame):
|
|
100
100
|
col1_name, col2_name = (
|
|
101
101
|
self.display_decimals.select("column_1_name", "column_2_name")
|
|
102
102
|
.distinct()
|
|
103
103
|
.collect()[0]
|
|
104
104
|
)
|
|
105
|
-
if col1_name.lower() not in [column.lower() for column in df.columns
|
|
105
|
+
if col1_name.lower() not in [column.lower() for column in df.columns]:
|
|
106
106
|
raise ValueError(
|
|
107
|
-
f"{col1_name} is not part of the columns available for this dataset ({df.columns
|
|
107
|
+
f"{col1_name} is not part of the columns available for this dataset ({df.columns})"
|
|
108
108
|
)
|
|
109
|
-
if col2_name.lower() not in [column.lower() for column in df.columns
|
|
109
|
+
if col2_name.lower() not in [column.lower() for column in df.columns]:
|
|
110
110
|
raise ValueError(
|
|
111
|
-
f"{col2_name} is not part of the columns available for this dataset ({df.columns
|
|
111
|
+
f"{col2_name} is not part of the columns available for this dataset ({df.columns})"
|
|
112
112
|
)
|
|
113
113
|
|
|
114
114
|
df = (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sws-spark-dissemination-helper
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.178
|
|
4
4
|
Summary: A Python helper package providing streamlined Spark functions for efficient data dissemination processes
|
|
5
5
|
Project-URL: Repository, https://github.com/un-fao/fao-sws-it-python-spark-dissemination-helper
|
|
6
6
|
Author-email: Daniele Mansillo <danielemansillo@gmail.com>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
sws_spark_dissemination_helper/SWSBronzeIcebergSparkHelper.py,sha256=N0eQ2LXtpPeZQCWYi85sMLmpXRzLA2erECiba8tqOAY,29595
|
|
2
2
|
sws_spark_dissemination_helper/SWSDatatablesExportHelper.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
sws_spark_dissemination_helper/SWSEasyIcebergSparkHelper.py,sha256=csqKyYglBkJSBvEkEa1_keHarZZAIJHaV0d64gGJy98,26379
|
|
4
|
-
sws_spark_dissemination_helper/SWSGoldIcebergSparkHelper.py,sha256=
|
|
4
|
+
sws_spark_dissemination_helper/SWSGoldIcebergSparkHelper.py,sha256=SfCahji4dc7KbhOMjPuqtgYLG5saYVBehT3DYu369VA,27170
|
|
5
5
|
sws_spark_dissemination_helper/SWSPostgresSparkReader.py,sha256=V_rH4UYoFZfMUc82U-KxeL_o8F44HnMHfLLXoyNxHxs,20016
|
|
6
6
|
sws_spark_dissemination_helper/SWSSilverIcebergSparkHelper.py,sha256=EXpqPHbxld8MPShE6Vo8h4y1vpBt_BjMtS4RPJcPeTU,26355
|
|
7
7
|
sws_spark_dissemination_helper/__init__.py,sha256=42TPbk7KxAud_qY3Sr_F4F7VjyofUlxEJkUXAFQsjRo,327
|
|
8
8
|
sws_spark_dissemination_helper/constants.py,sha256=cVjTS3xbJNKz-1i7c1dJk2PcOZzQhvuHUp9i4PNIPh4,14055
|
|
9
9
|
sws_spark_dissemination_helper/utils.py,sha256=Ge8zXsUIcvFihALDNLF5kCu_tAdRQUE04xE6Yn9xQF4,22008
|
|
10
|
-
sws_spark_dissemination_helper-0.0.
|
|
11
|
-
sws_spark_dissemination_helper-0.0.
|
|
12
|
-
sws_spark_dissemination_helper-0.0.
|
|
13
|
-
sws_spark_dissemination_helper-0.0.
|
|
10
|
+
sws_spark_dissemination_helper-0.0.178.dist-info/METADATA,sha256=sb2XDaU4bl4ts0JKErScAq19GNCElMv4sNq-wxuG5-o,2822
|
|
11
|
+
sws_spark_dissemination_helper-0.0.178.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
+
sws_spark_dissemination_helper-0.0.178.dist-info/licenses/LICENSE,sha256=zFzeb_j_6pXEHwH8Z0OpIkKFJk7vmhZjdem-K0d4zU4,1073
|
|
13
|
+
sws_spark_dissemination_helper-0.0.178.dist-info/RECORD,,
|
|
File without changes
|