grapher.needs_quoting()

Return True if a sheet name must be wrapped in single quotes in a formula.

Usage

Source

grapher.needs_quoting(sheet)