def read_csv(self, name):
filepath = os.path.join(self.path, name)
log.info('Loading {}…'.format(name))
dtype = {
'applicant_id': np.str,
'batch_number': np.str,
'cnpj_cpf': np.str,
'congressperson_document': np.str,
'congressperson_id': np.str,
'document_id': np.str,
'document_number': np.str,
'document_type': np.str,
'leg_of_the_trip': np.str,
'passenger': np.str,
'reimbursement_number': np.str,
'subquota_group_description': np.str,
'subquota_group_id': np.str,
'subquota_number': np.str,
'term_id': np.str,
}
return pd.read_csv(filepath, dtype=dtype)
评论列表
文章目录