You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many occasions, name of distant cousin table fields like driver__vehicle__part__manufacturer can be too verbose and hard to manage. I often find myself renaming these to a more convenient name, but that requires chaining an additional rename on top of the result.
I suggest allowing user to supply a name mapping as a dict() where keys() are used in the regular to_dataframe fashion, while items() are used as columns= value for renaming, before the dataframe is returned. Here's what it would look like