sheetwise.chain

Chain of Spreadsheet reasoning implementation (Offline Edition).

Classes

ChainOfSpreadsheet([compressor])

Implements deterministic 'Chain of Spreadsheet' reasoning.

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

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.