title: Passing a python dataframe to an object and altering the dataframe
body: <p>I am new to python and I am trying to pass an argument (dataframe) to a function and change value of the argument (dataframe) by reading an excel file.
  (Assume that I have imported all the necessary files)</p>
  
  <p>I have noticed that python does not pass the argument by reference here and I end up not having the dataframe initialized/changed.</p>
  
  <p>I read that python passes by object-reference and not by value or reference. However, I do not need to change the same dataframe.</p>
  
  <p>The output is : class 'pandas.core.frame.DataFrame'></p>
  
  <pre><code>from pandas import DataFrame as df
  class Data:
     x = df
  
     @staticmethod
     def import_File(df_name , file):
         df_name  = pd.io.excel.read_excel(file.replace('"',''), sheetname='Sheet1', header=0, skiprows=None, skip_footer=0, index_col=None, parse_cols=None, parse_dates=True, date_parser=True, na_values=None, thousands=None, convert_float=True, has_index_names=None, converters=None, engine=None )
  
  
  def inputdata():
      Data.import_File(Data.x,r"C:\Users\Data\try.xlsx")
      print(Data.x)
  </code></pre>