REF py26 and old pandas compatibility