rgwfuncs 0.0.92__py3-none-any.whl → 0.0.93__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.
- rgwfuncs/df_lib.py +7 -7
- {rgwfuncs-0.0.92.dist-info → rgwfuncs-0.0.93.dist-info}/METADATA +1 -1
- {rgwfuncs-0.0.92.dist-info → rgwfuncs-0.0.93.dist-info}/RECORD +7 -7
- {rgwfuncs-0.0.92.dist-info → rgwfuncs-0.0.93.dist-info}/WHEEL +0 -0
- {rgwfuncs-0.0.92.dist-info → rgwfuncs-0.0.93.dist-info}/entry_points.txt +0 -0
- {rgwfuncs-0.0.92.dist-info → rgwfuncs-0.0.93.dist-info}/licenses/LICENSE +0 -0
- {rgwfuncs-0.0.92.dist-info → rgwfuncs-0.0.93.dist-info}/top_level.txt +0 -0
rgwfuncs/df_lib.py
CHANGED
@@ -1279,7 +1279,7 @@ def append_ranged_classification_column(df: pd.DataFrame, ranges: List[Union[int
|
|
1279
1279
|
decimal=True
|
1280
1280
|
)
|
1281
1281
|
if i == len(ranges) - 1:
|
1282
|
-
label = f"{start}
|
1282
|
+
label = f"{start}+"
|
1283
1283
|
else:
|
1284
1284
|
end = pad_number(
|
1285
1285
|
ranges[i + 1],
|
@@ -1287,7 +1287,7 @@ def append_ranged_classification_column(df: pd.DataFrame, ranges: List[Union[int
|
|
1287
1287
|
max_decimal_length,
|
1288
1288
|
decimal=True
|
1289
1289
|
)
|
1290
|
-
label = f"{start}
|
1290
|
+
label = f"{start} - {end}"
|
1291
1291
|
labels.append(label)
|
1292
1292
|
|
1293
1293
|
else:
|
@@ -1298,10 +1298,10 @@ def append_ranged_classification_column(df: pd.DataFrame, ranges: List[Union[int
|
|
1298
1298
|
for i in range(len(ranges)):
|
1299
1299
|
start = pad_number(ranges[i], max_integer_length)
|
1300
1300
|
if i == len(ranges) - 1:
|
1301
|
-
label = f"{start}
|
1301
|
+
label = f"{start}+"
|
1302
1302
|
else:
|
1303
1303
|
end = pad_number(ranges[i + 1], max_integer_length)
|
1304
|
-
label = f"{start}
|
1304
|
+
label = f"{start} - {end}"
|
1305
1305
|
labels.append(label)
|
1306
1306
|
|
1307
1307
|
# Ensure the target column is numeric
|
@@ -1365,7 +1365,7 @@ def append_percentile_classification_column(df: pd.DataFrame, percentiles: List[
|
|
1365
1365
|
max_decimal_length,
|
1366
1366
|
decimal=True
|
1367
1367
|
)
|
1368
|
-
label = f"{start}
|
1368
|
+
label = f"{start} - {end}"
|
1369
1369
|
labels.append(label)
|
1370
1370
|
else:
|
1371
1371
|
percentiles_list = [int(p) for p in percentiles]
|
@@ -1375,7 +1375,7 @@ def append_percentile_classification_column(df: pd.DataFrame, percentiles: List[
|
|
1375
1375
|
for i in range(len(percentiles_list) - 1):
|
1376
1376
|
start = pad_number(percentiles_list[i], max_integer_length)
|
1377
1377
|
end = pad_number(percentiles_list[i + 1], max_integer_length)
|
1378
|
-
label = f"{start}
|
1378
|
+
label = f"{start} - {end}"
|
1379
1379
|
labels.append(label)
|
1380
1380
|
|
1381
1381
|
# Ensure the target column is numeric
|
@@ -1412,7 +1412,7 @@ def append_ranged_date_classification_column(df: pd.DataFrame, date_ranges: list
|
|
1412
1412
|
for i in range(len(date_list) - 1):
|
1413
1413
|
start_date = date_list[i].strftime('%Y-%m-%d')
|
1414
1414
|
end_date = date_list[i + 1].strftime('%Y-%m-%d')
|
1415
|
-
label = f"{start_date}
|
1415
|
+
label = f"{start_date} - {end_date}"
|
1416
1416
|
labels.append(label)
|
1417
1417
|
|
1418
1418
|
df[new_col_name] = pd.cut(
|
@@ -1,12 +1,12 @@
|
|
1
1
|
rgwfuncs/__init__.py,sha256=LSn54Tlyskcb6Wab_wUpPLB6UGMe5LdrB3GU88mDEbU,1712
|
2
2
|
rgwfuncs/algebra_lib.py,sha256=rKFITfpWfgdBswnbMUuS41XgndEt-jUVz2ObO_ik7eM,42234
|
3
|
-
rgwfuncs/df_lib.py,sha256=
|
3
|
+
rgwfuncs/df_lib.py,sha256=LHG6E-umLGVdDRWjziFrRb_YSlTronHv2QwEFBrTAt4,75528
|
4
4
|
rgwfuncs/docs_lib.py,sha256=i63NzX-V8cGhikYdtkRGAEe2VcuwpXxDUyTRa9xI7l8,1972
|
5
5
|
rgwfuncs/interactive_shell_lib.py,sha256=YN0ZnM5twIsOeDKuOQ9ZGURCvvBX0RZjM4a1vO1C3E8,4281
|
6
6
|
rgwfuncs/str_lib.py,sha256=hE0VfP6rhQpczsKyCZvH3G1aMRwngKnkW3NTYCEc0Po,3208
|
7
|
-
rgwfuncs-0.0.
|
8
|
-
rgwfuncs-0.0.
|
9
|
-
rgwfuncs-0.0.
|
10
|
-
rgwfuncs-0.0.
|
11
|
-
rgwfuncs-0.0.
|
12
|
-
rgwfuncs-0.0.
|
7
|
+
rgwfuncs-0.0.93.dist-info/licenses/LICENSE,sha256=jLvt20gcUZYB8UOvyBvyKQ1qhYYhD__qP7ZDx2lPFkU,1062
|
8
|
+
rgwfuncs-0.0.93.dist-info/METADATA,sha256=eEiNMD4k_feeK6mxhrVqlvDTRONwsPosvR-pj9hYlAI,61443
|
9
|
+
rgwfuncs-0.0.93.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
10
|
+
rgwfuncs-0.0.93.dist-info/entry_points.txt,sha256=j-c5IOPIQ0252EaOV6j6STio56sbXl2C4ym_fQ0lXx0,43
|
11
|
+
rgwfuncs-0.0.93.dist-info/top_level.txt,sha256=aGuVIzWsKiV1f2gCb6mynx0zx5ma0B1EwPGFKVEMTi4,9
|
12
|
+
rgwfuncs-0.0.93.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|