code: def label_from_df(self, cols:IntsOrStrs=1, label_cls:Callable=None, **kwargs):
          "Label `self.items` from the values in `cols` in `self.inner_df`."
          labels = self.inner_df.iloc[:,df_names_to_idx(cols, self.inner_df)]
          assert labels.isna().sum().sum() == 0, f"You have NaN values in column(s) {cols} of your dataframe, please fix it."
          if is_listy(cols) and len(cols) > 1 and (label_cls is None or label_cls == MultiCategoryList):
              new_kwargs,label_cls = dict(one_hot=True, classes= cols),MultiCategoryList
              kwargs = {**new_kwargs, **kwargs}
          return self._label_from_list(_maybe_squeeze(labels), label_cls=label_cls, **kwargsf label_from_df(self, cols:IntsOrStrs=1, label_cls:Callable=None, **kwargs):
          "Label `self.items` from the values in `cols` in `self.inner_df`."
          labels = self.inner_df.iloc[:,df_names_to_idx(cols, self.inner_df)]
          assert labels.isna().sum().sum() == 0, f"You have NaN values in column(s) {cols} of your dataframe, please fix it."
          if is_listy(cols) and len(cols) > 1 and (label_cls is None or label_cls == MultiCategoryList):
              new_kwargs,label_cls = dict(one_hot=True, classes= cols),MultiCategoryList
              kwargs = {**new_kwargs, **kwargs}
          return self._label_from_list(_maybe_squeeze(labels), label_cls=label_cls, **kwargs)
docs: Label `self.items` from the values in `cols` in `self.inner_df`.