4 ms·
What part of df.loc[index_val, column_val] is hard here? Oh you meant multiindex... yeah, slicing multiindexes sucks :)
by tomrod 3y ago
What part of df.loc[index_val, column_val] is hard here?
Oh you meant multiindex... yeah, slicing multiindexes sucks :)
- ok_computer 3y agoMulti indexes is baking my data into the horrible pandas object model into weird tuples. Every gripe I’ve had with pandas starts with trying to do something “simple” then following the pandas object model to achieve it and over complicating things. Polars is awesome, it fits my numpy understanding of dataframes as dict labeled arrays. I even like the immutability aspect.