pathpilot 0.3.2__tar.gz → 0.3.3__tar.gz
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.
- {pathpilot-0.3.2 → pathpilot-0.3.3}/PKG-INFO +1 -1
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/__init__.py +1 -1
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/_file/_excel.py +4 -2
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pyproject.toml +1 -1
- {pathpilot-0.3.2 → pathpilot-0.3.3}/LICENSE +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/README.md +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/_file/__init__.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/_file/_csv.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/_file/_pickle.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/_file/_sqlite.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/_file/_text.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/_file/_zip.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/_file/base.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/_file/utils.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/_folder/__init__.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/_folder/backup.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/_folder/base.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/_folder/utils.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/core.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/decorators.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/exceptions.py +0 -0
- {pathpilot-0.3.2 → pathpilot-0.3.3}/pathpilot/utils.py +0 -0
|
@@ -834,13 +834,15 @@ class ExcelFile(FileBase):
|
|
|
834
834
|
for k in numeric_columns:
|
|
835
835
|
if not df[k].isna().all():
|
|
836
836
|
s = clean_abs_numeric(df[k])
|
|
837
|
-
|
|
837
|
+
abs_max = s.max()
|
|
838
|
+
if pd.notna(abs_max) and abs_max >= 1000:
|
|
838
839
|
data_format[k] = infer_format('commas', s)
|
|
839
840
|
|
|
840
841
|
for k in percent_columns:
|
|
841
842
|
if not df[k].isna().all():
|
|
842
843
|
s = clean_abs_numeric(df[k])
|
|
843
|
-
|
|
844
|
+
abs_min = s.where(s > 0).min()
|
|
845
|
+
if pd.notna(abs_min) and abs_min >= 1:
|
|
844
846
|
df[k] /= 100
|
|
845
847
|
else:
|
|
846
848
|
s *= 100
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|