Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data Frame map
#1
I have a data frame with a column called 'city' containing city names. I also have a dictionary where the keys are city names and values are corresponding states.
If we want to add a column in the original data frame containing the state corresponding to each city in 'city', How should I do it?
Reply
#2
You need to make an attempt at this yourself and show your code before anyone will be able to help you.

See Homework and No Effort Questions
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  regex.findall and data frame metalray 6 9,998 May-15-2018, 02:35 PM
Last Post: metalray

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020