Fit this model to the data.

If the table metadata has not been given, learn it from the data.


data (pandas.DataFrame or str) – Data to fit the model to. It can be passed as a pandas.DataFrame or as an str. If an str is passed, it is assumed to be the path to a CSV file which can be loaded using pandas.read_csv.