CLN: refactored out take from core/frame.py to use core/generic.py version