emat/multitarget/frameable.py
def _pre_fit(self, X, Y):
		"""Store column labels from fitted data."""

		if isinstance(Y, pandas.DataFrame):
			self._Y_columns = list(Y.columns)
		elif isinstance(Y, pandas.Series):
			self._Y_columns = str(Y.name)
		else:
			self._Y_columns = None
Store column labels from fitted data.
Store column labels from fitted data.
Store column labels from fitted data .
def _pre_fit(self, X, Y):
		if isinstance(Y, pandas.DataFrame):
			self._Y_columns = list(Y.columns)
		elif isinstance(Y, pandas.Series):
			self._Y_columns = str(Y.name)
		else:
			self._Y_columns = None
def _pre_fit ( self , X , Y ) : if isinstance ( Y , pandas . DataFrame ) : self . _Y_columns = list ( Y . columns ) elif isinstance ( Y , pandas . Series ) : self . _Y_columns = str ( Y . name ) else : self . _Y_columns = None
Store column labels from fitted data.
Store column labels from fitted data .
"""Store column labels from fitted data."""
self
X
Y