CLN: refactor + standardize data_frame internals