CLN/ENH: Make names getattr'able in core/ops +PEP8. by jtratner · Pull Request #5240 · pandas-dev/pandas (original) (raw)
Now the name passed to a method can be used to get that method from the
NDFrame (previously you had things like or_ [|]
. better to just have them
all be named exactly what they are s.t. subclasses can dogetattr(super(self, MyClass), name)(*args, **kwargs)
.
Now the name passed to a method can be used to get that method from the
NDFrame (previously you had things like or_ [|]
. better to just have
them all be named exactly what they are s.t. subclasses can do
getattr(super(self, MyClass), name)(*args, **kwargs)
.
jtratner added a commit that referenced this pull request
CLN/ENH: Make names getattr'able in core/ops +PEP8.