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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pathpilot
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Library that facilitates file and folder manipulation in Python.
5
5
  Home-page: https://github.com/zteinck/pathpilot
6
6
  License: MIT
@@ -3,5 +3,5 @@ from .decorators import *
3
3
  from .exceptions import *
4
4
  from .utils import *
5
5
 
6
- __version__ = '0.3.2'
6
+ __version__ = '0.3.3'
7
7
  __author__ = 'Zachary Einck <zacharyeinck@gmail.com>'
@@ -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
- if s.max() >= 1000:
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
- if s.where(s > 0).min() >= 1:
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pathpilot"
3
- version = "0.3.2"
3
+ version = "0.3.3"
4
4
  description = "Library that facilitates file and folder manipulation in Python."
5
5
  authors = ["Zachary Einck <zacharyeinck@gmail.com>"]
6
6
  license = "MIT"
File without changes
File without changes
File without changes
File without changes