New column in pandas dataframe based on existing column values
<p>I have a dataframe with a column named <code>'States'</code> that lists various U.S. states. I need to create another column with a region specifier like <code>'Atlantic Coast'</code> I have lists of the states that belong to various regions so if the state in <code>df['States']</code> matches a state in the list <code>'Atlantic_states'</code> the specifier <code>'Atlantic Coast'</code> is inserted into the new column <code>df['region specifier']</code> my code below shows the list I want to compare my dataframe values with and the output of the <code>df['States']</code> column.</p>

<pre><code> #list of states
 Atlantic_states = ['Virginia',
              'Massachusetts',
              'Maine',
              'New York',
              'Rhode Island',
              'Connecticut',
              'New Hampshire',
              'Maryland',
              'Delaware',
              'New Jersey',
              'North Carolina',
              'South Carolina',
              'Georgia',
              'Florida']
 print(df['States'])

 Out:
                 States
       0         Virginia
       1    Massachusetts
       2            Maine
       3         New York
       4     Rhode Island
       5      Connecticut
       6    New Hampshire
       7         Maryland
       8         Delaware
       9       New Jersey
       10  North Carolina
       11  South Carolina
       12         Georgia
       13         Florida
       14       Wisconsin
       15        Michigan
       16            Ohio
       17    Pennsylvania
       18        Illinois
       19         Indiana
       20       Minnesota
       21        New York
       22      Washington
       23          Oregon
       24      California
</code></pre>