title: Python Create new variable inside For Loop
body: <p>I've read through some existing answers and maybe I'm just not firing on all cylinders today because I'm completely lost...</p>
  
  <p>I have a for loop currently that fixes a few things in some Pandas dataframes. I've truncated it to show what I'm doing here:</p>
  
  <pre><code>prime1 = pd.read_excel('10_27_2017 to 10_30_2017 Prime Run.xlsx')
  prime2 = pd.read_excel('10_28_2018 to 10_30_2018 Plugging Event.xlsx')
  prime3 = pd.read_excel('2_15_2019 to 2_16_2019 Prime Run.xlsx')
  prime4 = pd.read_excel('3_23_2019 to 3_24_2019 Prime Run.xlsx')
  prime5 = pd.read_excel('4_11_2017 to 4_15_2017 Plugging Event.xlsx')
  prime6 = pd.read_excel('6_1_2019 to 6_4_2019 Prime Run.xlsx')
  prime7 = pd.read_excel('6_20_2018 to 6_22_2018 Prime Run.xlsx')
  prime8 = pd.read_excel('7_10_2017 to 7_14_2017 Plugging Event.xlsx')
  prime9 = pd.read_excel('8_27_2018 to 8_29_2018 Plugging Event.xlsx')
  
  dlist = [prime1,prime2,prime3,prime4,prime5,prime6,prime7,prime8,prime9]
  for entry in dlist:
      print(entry.shape)
      entry.rename( columns={'Unnamed: 0':'Date'}, inplace=True )
      next
  </code></pre>
  
  <p>This works for what I need to do in terms of updated column names and a few other minor things. Next however I need to melt each of the variables</p>
  
  <pre><code>prime1_melt = pd.melt(prime1, id_vars = ['Date'], var_name='Feature', value_name='Value')
  </code></pre>
  
  <p>works perfectly fine if I do them one at a time. But I'd like to just include it in my loop to happen auto-magically. I just seem to be lost as to how to implement the second list of variable names that end in "_melt" </p>
  
  <p>Thanks in advance</p>