title: re-naming data frame output given input parameter to class in python
body: <p>I have managed to make my first class, containing two methods where on holds data and the other does a set of derivations on the input data, given fairly simple python code utilizing Pandas functionality. I call the class, and its adherent methods, with 4 parameters. </p>
  
  <p>What I would like is for the output from the class, a Pandas data frame, to be named according to one of the input parameters - being an string object. This since the derivation is made on a single data column in the input data and it would be practical to name the output data frame to the same as the input parameter (i.e., data frame variable) for later use. </p>
  
  <p>An crude example of the structure of the class (and of the code) is give below:</p>
  
  <pre><code>class tool_swoe_iv:
  "docstring"
  
      def __init__(self,data_in):
          self.data_in = data_in
  
      def swoe_iv(self, param1, param2):
          "code that executes calculations"
  
          # output table which I would like to be re-named to param1 so it can be called later on. 
          woe_holder 
  </code></pre>
  
  <p>When I call the class I would like the "woe_holder" data frame to have the same name as param1. Does my questions make sense? I come from a SAS background where the re-naming of the output data could easily have been done by a macro variable holding the name suffix.  </p>
  
  <p>Please note that im very new to the more formal parts of python coding involving classes and their development, honestly also to more standard python coding too.</p>
  
  <p>Best,</p>