brainstat.stats.terms.get_index

brainstat.stats.terms.get_index(df)[source]

Get index for column names of the form x{i}.

If there are none, return 0.

Parameters

df (DataFrame) – Input dataframe.

Returns

index (int) – Index for the next x column. If df is empty, return None.