Skip to content

Commit

Permalink
fix(excel), #132: Correction on how to handle the empty values used w…
Browse files Browse the repository at this point in the history
…ithin a formula
  • Loading branch information
vinci1it2000 committed Mar 22, 2024
1 parent 4eaa76e commit bb6b935
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion formulas/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from .parser import Parser
from .ranges import Ranges, _assemble_values, _shape, _get_indices_intersection
from .tokens.operand import Error, XlError, range2parts, _re_ref, _index2col
from .functions import replace_empty

CELL = sh.Token('Cell')

Expand Down Expand Up @@ -162,7 +163,8 @@ def add(self, dsp, context=None):
except ValueError:
dsp.add_data(k)
nodes.add(dsp.add_function(
self.__name__, self.func, inputs or None, [output]
self.__name__, self.func, inputs or None, [output],
filters=[replace_empty]
))
return nodes

Expand Down
Binary file modified test/test_files/test.xlsx
Binary file not shown.

0 comments on commit bb6b935

Please sign in to comment.