MCPcopy
hub / github.com/jmcnamara/XlsxWriter / _list_to_formula

Method _list_to_formula

xlsxwriter/chart.py:867–882  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

865 return font
866
867 def _list_to_formula(self, data):
868 # Convert and list of row col values to a range formula.
869
870 # If it isn't an array ref it is probably a formula already.
871 if not isinstance(data, list):
872 # Check for unquoted sheetnames.
873 if data and " " in data and "'" not in data and self.warn_sheetname:
874 warn(
875 f"Sheetname in '{data}' contains spaces but isn't quoted. "
876 f"This may cause an error in Excel."
877 )
878 return data
879
880 formula = xl_range_formula(*data)
881
882 return formula
883
884 def _process_names(self, name, name_formula):
885 # Switch name and name_formula parameters if required.

Callers 1

add_seriesMethod · 0.95

Calls 1

xl_range_formulaFunction · 0.85

Tested by

no test coverage detected