Skip to content

Comments

feat: Exclude zeros and missing values#186

Draft
likp wants to merge 7 commits intomainfrom
feature/exclude-zeros
Draft

feat: Exclude zeros and missing values#186
likp wants to merge 7 commits intomainfrom
feature/exclude-zeros

Conversation

@likp
Copy link
Contributor

@likp likp commented Feb 20, 2026

Add option to exclude zeros and missing values

  • Csv
  • Excel
  • Html

likp added 7 commits February 20, 2026 09:40
Introduced ExcludeZerosAndMissingValues property to CsvSerializer. When enabled, rows (or the single heading row) containing only zero or missing values are omitted from the CSV output by checking with df.IsZeroRow. This helps produce cleaner exports by removing irrelevant data rows.
Previously, ZeroOption was always set to NoZeroNilAndSymbol in the DataFormatter. Now, it is only set when ExcludeZerosAndMissingValues is true, allowing for more flexible handling of zero and missing values in CSV serialization.
Added caching to efficiently detect and skip empty rows when serializing PXModel tables to HTML. Introduced StubX and AreAllEmptyRows methods for row grouping and emptiness checks. Changed ExcludeZerosAndMissingValues default to true, so empty rows are excluded by default. Improves performance and output clarity.
Renamed the StubX method to CalculateStubRepeat for clarity and converted it to a static method. Updated all references to use the new method name, improving code readability and organization.
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant