title: Python: Combine pdfs based on name
body: <p>I've written some code that creates pdfs of different graphs for every column in my dataframe. The pdfs are saved in the same folder the code is saved in. I have saved the pdfs using a combination of the column name and a description of the type of graph. I've included a sample of one type of graph. This graph is saved as "columnname_histogram.pdf"</p>
  
  <pre><code>############################# HISTOGRAM ###############################################
  
  palette = sns.color_palette(palette=sns.crayon_palette(sns.colors.crayons))
  new_palette = itertools.cycle(palette)         
  for i in data:  # Loop over all columns 
      k =data[i].astype(float) #Changing to float
      sns.set() #defaults the background
      fig, ax = plt.subplots()
      sns.set(style="ticks") #darkens grid lines
      sns.distplot(k,color=next(new_palette))  #sets which column to use
      sns.despine(offset=10, trim=True) 
      fig.set_size_inches(18,12)
      ax.set_title('{} Histogram'.format(i), fontweight='bold') #sets chart title based on column
      plt.savefig('{}_hist.pdf'.format(i), bbox_inches='tight')  #sets file name based on column name
  </code></pre>
  
  <p>In addition to the histogram I also have a violin plot and historical line plot with the same naming conventions.</p>
  
  <p>My question is, how do I get these individual pdfs and put them into one pdf for easy viewing? I am trying to get all pdfs with the same column name into one document. Any advice or example code I could follow? I haven't had any luck trying myself.</p>
  
  <p>Thank you!</p>