Tools Our tool collection contains some convenience functions for users and functions that were written mainly for internal use. Additional to this tools directory, several other subpackages have their own tools modules, for example statsmodels.tsa.tsatools Module Reference Basic tools tools
These are basic and miscellaneous tools. The full import path is statsmodels.tools.tools.
tools.add_constant(data[, prepend, has_constant]) This appends a column of ones to an array if prepend==False.