Iterate the keys in a mapping, not the mapping itself
This is a little more clear, and covers the case where a sequence might try to be clever and provide access to its indices via a `keys` iterator (e.g. pandas.Series)
Loading
Please sign in to comment