brainstat.stats.terms.to_df

brainstat.stats.terms.to_df(x, n=1, names=None, idx=None)[source]

Convert input to DataFrame.

Parameters
  • x (int, array-like FixedEffect) – Input data.

  • n (int, optional) – If input is a scalar, broadcast to column of n entries. Default is 1.

  • names (str, sequence of str or None, optional) – Names for each column in x. Default is None.

  • idx (int or None, optional) – Staring index for variable names of the for x{i}.

Returns

df (DataFrame) – Input x wrapped in a DataFrame.