Skip to content

Instantly share code, notes, and snippets.

@Kamaldeep0077
Created December 6, 2020 09:12
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 Kamaldeep0077/c3a481fa1006fe859b860141009a7628 to your computer and use it in GitHub Desktop.
Save Kamaldeep0077/c3a481fa1006fe859b860141009a7628 to your computer and use it in GitHub Desktop.
data['Item_Code'] = data['Item_Identifier'].apply(lambda x: x[0:2])
data[['Item_Identifier', 'Item_Code']].head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment