ecopipeline 0.9.1__py3-none-any.whl → 0.9.2__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.
- ecopipeline/transform/transform.py +6 -5
- {ecopipeline-0.9.1.dist-info → ecopipeline-0.9.2.dist-info}/METADATA +1 -1
- {ecopipeline-0.9.1.dist-info → ecopipeline-0.9.2.dist-info}/RECORD +6 -6
- {ecopipeline-0.9.1.dist-info → ecopipeline-0.9.2.dist-info}/WHEEL +0 -0
- {ecopipeline-0.9.1.dist-info → ecopipeline-0.9.2.dist-info}/licenses/LICENSE +0 -0
- {ecopipeline-0.9.1.dist-info → ecopipeline-0.9.2.dist-info}/top_level.txt +0 -0
|
@@ -396,11 +396,12 @@ def column_name_change(df : pd.DataFrame, dt : pd.Timestamp, new_column : str, o
|
|
|
396
396
|
remove_old_column : bool
|
|
397
397
|
remove old column when done
|
|
398
398
|
"""
|
|
399
|
-
if df.
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
399
|
+
if old_column in df.columns:
|
|
400
|
+
if df.index.min() < dt:
|
|
401
|
+
mask = df.index < dt
|
|
402
|
+
df.loc[mask, new_column] = df.loc[mask, old_column]
|
|
403
|
+
if remove_old_column:
|
|
404
|
+
df = df.drop(columns=[old_column])
|
|
404
405
|
return df
|
|
405
406
|
|
|
406
407
|
def heat_output_calc(df: pd.DataFrame, flow_var : str, hot_temp : str, cold_temp : str, heat_out_col_name : str, return_as_kw : bool = True) -> pd.DataFrame:
|
|
@@ -8,12 +8,12 @@ ecopipeline/load/load.py,sha256=Ptxr0MOjns_HeVSmZsLLApHJGB-z6XOB2m8LNiVaD7E,2386
|
|
|
8
8
|
ecopipeline/transform/__init__.py,sha256=YveBLBsNhfI4qZP04doa0NrTbEKvjDAUDEKtEPdFPfU,2545
|
|
9
9
|
ecopipeline/transform/bayview.py,sha256=TP24dnTsUD95X-f6732egPZKjepFLJgDm9ImGr-fppY,17899
|
|
10
10
|
ecopipeline/transform/lbnl.py,sha256=EQ54G4rJXaZ7pwVusKcdK2KBehSdCsNo2ybphtMGs7o,33400
|
|
11
|
-
ecopipeline/transform/transform.py,sha256=
|
|
11
|
+
ecopipeline/transform/transform.py,sha256=wL4B00XBwLWVlf7goOLSHKgLFmIsXprQNepGLLO_wTk,50028
|
|
12
12
|
ecopipeline/utils/ConfigManager.py,sha256=-g1wtExdvhYO5Y6Q3cRbywa__DxRMFruLrB4YanwaPY,12168
|
|
13
13
|
ecopipeline/utils/__init__.py,sha256=ccWUR0m7gD9DfcgsxBCLOfi4lho6RdYuB2Ugy_g6ZdQ,28
|
|
14
14
|
ecopipeline/utils/unit_convert.py,sha256=VFh1we2Y8KV3u21BeWb-U3TlZJXo83q5vdxxkpgcuME,3064
|
|
15
|
-
ecopipeline-0.9.
|
|
16
|
-
ecopipeline-0.9.
|
|
17
|
-
ecopipeline-0.9.
|
|
18
|
-
ecopipeline-0.9.
|
|
19
|
-
ecopipeline-0.9.
|
|
15
|
+
ecopipeline-0.9.2.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
+
ecopipeline-0.9.2.dist-info/METADATA,sha256=TvfyD5HUMuKdbDYtQZqr4iTg0HSNNMswtLEVXF7AZ-I,2329
|
|
17
|
+
ecopipeline-0.9.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
18
|
+
ecopipeline-0.9.2.dist-info/top_level.txt,sha256=WOPFJH2LIgKqm4lk2OnFF5cgVkYibkaBxIxgvLgO7y0,12
|
|
19
|
+
ecopipeline-0.9.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|