Skip to content

Implement daily count extraction and invariance tests #50

@gelluisaac

Description

@gelluisaac

Implement daily count extraction function and tests

  • Implement _extract_daily_counts helper function:
    • Convert timestamps to dates (day resolution)
    • Determine first and last transaction dates
    • Create complete date range from first to last
    • Count transactions per day using value_counts
    • Fill missing days with 0
    • Return numpy array of counts
    • Handle edge cases (empty timestamps, single timestamp)
  • Write unit tests for _extract_daily_counts:
    • Multiple days with gaps
    • All transactions on same day
    • Single transaction
    • Empty timestamps
    • Days with zero transactions
  • Write property test for timestamp order invariance:
    • Shuffle timestamps, verify daily counts are identical
  • Requirements: 1.3, 2.2, 6.4

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdocumentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions