DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
remap values in a column based on condition from another dataframe
code_dict = airport_codes.set_index('airport_code').to_dict()['airport']
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#remap
#values
#column
#based
#condition
#dataframe
ADD COMMENT
Topic
COMMENT
Name
6+5 =
Submit