My question is a logical continuation of this topic: Setting values with multiindex in pandas. So the example and answer from this, suits my situation either.
They set a multiindex value with f.loc[(slice(None), "one"), 0] = 1
But in my case, i have lot's of dataframes with custom number of index levels, so i would like to use indexing only on last level, without specifying others - smth like f.loc[:::, "one"), 0] = 1
.
P.S. Also, if i have an Indexer
for column "one", am i able to use it?
Indexer can be an array: array([ True, True, True, ..., True, True, True], dtype=bool)