sheetwise.chain module

Chain of Spreadsheet reasoning implementation (Offline Edition).

class sheetwise.chain.ChainOfSpreadsheet(compressor=None)[source]

Bases: object

Implements deterministic ‘Chain of Spreadsheet’ reasoning. Uses fuzzy matching and heuristic scoring instead of LLMs.

__init__(compressor=None)[source]
process_query(df, query)[source]

Process a query using deterministic search logic.

Parameters:
  • df (DataFrame) – Input DataFrame

  • query (str) – Natural language query (e.g., “Revenue in 2023”)

Return type:

Dict[str, Any]

Returns:

Dictionary containing identified tables and search scores.