This appends a column of ones to an array if prepend==False.
For ndarrays and pandas.DataFrames, checks to make sure a constant is not already included. If there is at least one column of ones then the original object is returned. Does not check for a constant if a structured or recarray is given.
Parameters : | data : array-like
prepend : bool
|
---|---|
Returns : | data : array
|