warpzone-sdk 15.1.0__py3-none-any.whl → 15.1.1__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.
warpzone/db/client.py
CHANGED
|
@@ -195,12 +195,10 @@ class WarpzoneDatabaseClient:
|
|
|
195
195
|
include_validity_period_columns (bool, optional): Whether to include
|
|
196
196
|
validity period columns in the result;
|
|
197
197
|
(`valid_from_time_utc`, `valid_to_time_utc`).
|
|
198
|
-
Defaults to False.
|
|
199
|
-
to include these columns in the `columns`-list.
|
|
198
|
+
Defaults to False.
|
|
200
199
|
include_generated_columns (bool, optional): Whether to include generated
|
|
201
200
|
columns in the result; (e.g. `valid_from_time_utc`, `valid_to_time_utc`).
|
|
202
|
-
Defaults to False.
|
|
203
|
-
to include these columns in the `columns`-list.
|
|
201
|
+
Defaults to False.
|
|
204
202
|
|
|
205
203
|
Returns:
|
|
206
204
|
pd.DataFrame: The result of the query.
|
|
@@ -252,10 +250,12 @@ class WarpzoneDatabaseClient:
|
|
|
252
250
|
for field in table.schema().fields:
|
|
253
251
|
if field.generated_as is not None:
|
|
254
252
|
generated_cols.append(field.column_name)
|
|
255
|
-
pd_df = pd_df.drop(columns=generated_cols)
|
|
253
|
+
pd_df = pd_df.drop(columns=generated_cols, errors="ignore")
|
|
256
254
|
|
|
257
255
|
# Drop valid-from/to columns
|
|
258
256
|
if not include_validity_period_columns:
|
|
259
|
-
pd_df = pd_df.drop(
|
|
257
|
+
pd_df = pd_df.drop(
|
|
258
|
+
columns=["valid_from_time_utc", "valid_to_time_utc"], errors="ignore"
|
|
259
|
+
)
|
|
260
260
|
|
|
261
261
|
return pd_df
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: warpzone-sdk
|
|
3
|
-
Version: 15.1.
|
|
3
|
+
Version: 15.1.1
|
|
4
4
|
Summary: The main objective of this package is to centralize logic used to interact with Azure Functions, Azure Service Bus and Azure Table Storage
|
|
5
5
|
Author: Team Enigma
|
|
6
6
|
Author-email: enigma@energinet.dk
|
|
@@ -2,7 +2,7 @@ warpzone/__init__.py,sha256=Ay7znIadokCdHHqsPlWAqhdg-zdWhXHNtxVinViYm7o,1533
|
|
|
2
2
|
warpzone/blobstorage/__init__.py,sha256=lnc0uiaGLF0qMi_rWhCpRSFvaj0CJEiMCAl6Yqn1ZiA,21
|
|
3
3
|
warpzone/blobstorage/client.py,sha256=YwDV83acoCeHS_D_ydsTYwnf56rSTy9CKpsxqeoXmBs,4638
|
|
4
4
|
warpzone/db/__init__.py,sha256=lnc0uiaGLF0qMi_rWhCpRSFvaj0CJEiMCAl6Yqn1ZiA,21
|
|
5
|
-
warpzone/db/client.py,sha256=
|
|
5
|
+
warpzone/db/client.py,sha256=TdzfpgC81floe0WM7JGNbQpVz1esj1uXjnIZ9kTZmlY,9518
|
|
6
6
|
warpzone/deltastorage/__init__.py,sha256=cV8sGT2N_N5Z-E179NMW5O7q3FUDrb3j5f-yVNlNPv0,152
|
|
7
7
|
warpzone/deltastorage/data_types.py,sha256=tWjLO_0ig7-tYxSHShvrd0znA7FFDnS-wBuFClUQG2U,2059
|
|
8
8
|
warpzone/deltastorage/generated_columns.py,sha256=Dr_bihM7v9JKCgBXxc3JQC2P2mUGobXsReRKOl6jDO4,4765
|
|
@@ -52,6 +52,6 @@ warpzone/tools/copy.py,sha256=5fddotMZkXZO8avzUbGOhvs0cp8mce95pNpy0oPVjnQ,2596
|
|
|
52
52
|
warpzone/transform/__init__.py,sha256=ruGa7tl-v4ndlWpULE1jSGU_a4_iRc3V6eyNr5xKP9E,27
|
|
53
53
|
warpzone/transform/data.py,sha256=Abb8PcrgMbbNCJkkIUdtrTHdlY0OfXid387qw1nDpFY,2362
|
|
54
54
|
warpzone/transform/schema.py,sha256=nbSQtDMvXkyqGKuwhuFCF0WsEDsaNyoPYpMKvbsKlv8,2423
|
|
55
|
-
warpzone_sdk-15.1.
|
|
56
|
-
warpzone_sdk-15.1.
|
|
57
|
-
warpzone_sdk-15.1.
|
|
55
|
+
warpzone_sdk-15.1.1.dist-info/METADATA,sha256=6WeGlAAYB3qDhdzNl4bS3GFiEzmAasRu-kakPJ3LqSM,7279
|
|
56
|
+
warpzone_sdk-15.1.1.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
|
|
57
|
+
warpzone_sdk-15.1.1.dist-info/RECORD,,
|