Understand the core objects: Client and Spread
mastergspread-pandas revolves around two primary abstractions designed to bridge Google Sheets and Pandas DataFrames:
Client: An extension of thegspread.Clientthat handles authentication, directory management in Google Drive, and advanced file querying.Spread: Represents an open Google Spreadsheet. It manages worksheets and provides high-level methods for common spreadsheet tasks (like merging cells or handling multi-level headers) and Pandas integration.
While a Spread object manages a specific spreadsheet, it internally holds a Client instance to perform operations. You can share a single Client instance across multiple Spread objects to maintain consistent authentication and directory state.