class_docstr: `Learner` for tabular data
docstr: Predict on a single sample
docstr_tok: ["Predict","on","a","single","sample"]
code: def predict(
      self,
      row: pd.Series,  # Features to be predicted
  ):
      "Predict on a single sample"
      dl = self.dls.test_dl(row.to_frame().T)
      dl.dataset.conts = dl.dataset.conts.astype(np.float32)
      inp, preds, _, dec_preds = self.get_preds(
          dl=dl, with_input=True, with_decoded=True
      )
      b = (*tuplify(inp), *tuplify(dec_preds))
      full_dec = self.dls.decode(b)
      return full_dec, dec_preds[0], preds[0]
  
file_path: fastai/fastai/tabular/learner.py
imports: from __future__ import annotations
  from ..basics import *
  from .core import *
  from .model import *
  from .data import *
label_desc: Use image node_id 1 for calling the TabularLearner obj's underlying member method code with example usage: obj.predict(row) and returns: full_dec,  dec_preds,  preds