title: Upload csv file in Anvil with uplink
body: <p>I have an error like this:</p>
  <pre><code>TypeError: __init__() takes from 1 to 2 positional arguments but 3 were given at &lt;ipython-input 4-66c1c8f89515&gt;, line 8 called from Form1, line 18
  </code></pre>
  <p>this my code in anvil:</p>
  <pre><code>class Form1(Form1Template):
  def __init__(self, **properties):
      # Set Form properties and Data Bindings.
      self.init_components(**properties)
  
    def file_loader_1_change(self, file, **event_args):
      &quot;&quot;&quot;This method is called when a new file is loaded into this FileLoader&quot;&quot;&quot;
      anvil.server.call('import_csv_data',file)
  </code></pre>
  <p>and this code in jupyter notebook for upload the data to anvil data table:</p>
  <pre><code>import pandas as pd
  import anvil.tables as tables
  from anvil.tables import app_tables
  import anvil.media
  
  @anvil.server.callable
  def import_csv_data(file):
    with anvil.media.TempFile(file, &quot;r&quot;) as f:
      df = pd.read_csv(f)
      for d in df.to_dict(orient=&quot;records&quot;):
        # d is now a dict of {columnname -&gt; value} for this row
        # We use Python's **kwargs syntax to pass the whole dict as
        # keyword arguments
        app_tables.NilaiTukar.add_row(**d)
  </code></pre>