QST: Use object property as key?
Is there a way to use a property of an object as the key when providing the object to a DataFrame?
I think the code makes clearer what I am looking for.

```python
class Key:
  def __init__(self, name: str):
    self.name = name
  
  # Something like that
  def __pandas_key__(self):
    return self.name

df = DataFrame({"col": [1,2,3,4]})
key = Key("col")

df[key] # is [1,2,3,4]
```
