1.2.13.1.2. patsy.Origin.caretize

Origin.caretize(indent=0)[source]

Produces a user-readable two line string indicating the origin of some code. Example:

y ~ x1:x2
    ^^

If optional argument ‘indent’ is given, then both lines will be indented by this much. The returned string does not have a trailing newline.