MCPcopy
hub / github.com/pandas-dev/pandas / combine_kwargs

Function combine_kwargs

pandas/io/excel/_util.py:304–328  ·  view source on GitHub ↗

Used to combine two sources of kwargs for the backend engine. Use of kwargs is deprecated, this function is solely for use in 1.3 and should be removed in 1.4/2.0. Also _base.ExcelWriter.__new__ ensures either engine_kwargs or kwargs must be None or empty respectively. Paramet

(engine_kwargs: dict[str, Any] | None, kwargs: dict)

Source from the content-addressed store, hash-verified

302
303
304def combine_kwargs(engine_kwargs: dict[str, Any] | None, kwargs: dict) -> dict:
305 """
306 Used to combine two sources of kwargs for the backend engine.
307
308 Use of kwargs is deprecated, this function is solely for use in 1.3 and should
309 be removed in 1.4/2.0. Also _base.ExcelWriter.__new__ ensures either engine_kwargs
310 or kwargs must be None or empty respectively.
311
312 Parameters
313 ----------
314 engine_kwargs: dict
315 kwargs to be passed through to the engine.
316 kwargs: dict
317 kwargs to be psased through to the engine (deprecated)
318
319 Returns
320 -------
321 engine_kwargs combined with kwargs
322 """
323 if engine_kwargs is None:
324 result = {}
325 else:
326 result = engine_kwargs.copy()
327 result.update(kwargs)
328 return result

Callers 3

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls 2

copyMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected