Closed martinfleis closed 3 weeks ago
Assuming that the data we work with are most likely pandas.DataFrames, I find this pattern a bit unintuitive.
spreg.OLS( df[["dependent"]].values, df[independent_names].values, name_y="dependent", name_x= independent_names, )
Since the data already have names in the original data frame, I would love to see this pattern:
spreg.OLS( df["dependent"], df[independent_names], )
where spreg gets values for name_y and name_x automatically as the name of the Series and column names.
spreg
name_y
name_x
This currently fails on the check_arrays call.
check_arrays
This feature will be in the next release.
Added in #145.
Assuming that the data we work with are most likely pandas.DataFrames, I find this pattern a bit unintuitive.
Since the data already have names in the original data frame, I would love to see this pattern:
where
spreg
gets values forname_y
andname_x
automatically as the name of the Series and column names.This currently fails on the
check_arrays
call.