Skip to content

Instantly share code, notes, and snippets.

@hsyyid
Created August 25, 2020 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hsyyid/e607cf5c7dd17abdccdd0244410ee25f to your computer and use it in GitHub Desktop.
Save hsyyid/e607cf5c7dd17abdccdd0244410ee25f to your computer and use it in GitHub Desktop.
# Let's clean up the names of these columns
invoices = input_df.pipe(lambda x: x.rename(columns={'CustomerRef__value': 'CustomerId', 'CustomerRef__name': 'Customer',
'MetaData__LastUpdatedTime': 'LastUpdated',
'MetaData__CreateTime': 'CreatedOn', 'CurrencyRef__name': 'Currency',
'CurrencyRef__value': 'CurrencyCode'}))
invoices.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment