pandas 1.4.2

Parameters
ensure_clean(filename=None, return_filelike: 'bool' = False, **kwargs: 'Any')

This implementation does not use tempfile.mkstemp to avoid having a file handle. If the code using the returned path wants to delete the file itself, windows requires that no program has a file handle to it.

Parameters

filename : str (optional)

suffix of the created file.

return_filelike : bool (default False)

if True, returns a file-like which is always cleaned. Necessary for savefig and other functions which want to append extensions.

**kwargs :

Additional keywords are passed to open().

Gets a temporary path and agrees to remove on close.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /pandas/_testing/contexts.py#86
type: <class 'function'>
Commit: