title: JSONDecodeError skip
body: <p>I am trying to get a new column in a dataframe with the function passed in it and this is a working code. (The function is an API scrape and idk how to 1) edit it or 2) trouble shoot it)</p>
  <pre><code>df = pd.DataFrame(data = myarray)
  df.columns=[&quot;A&quot;]
  df['B']= 'US'
  
  array_thing=[]
  
  for i in range(len(df)):
      array_thing.append(mycoolfunction(df.iloc[i, 0], df.iloc[i, 1]))
  df['new']=array_thing
  
  df
  </code></pre>
  <p>Now I need to skip the error that is raised in some lines saying:
  <strong>JSONDecodeError: Expecting value: line 1 column 1 (char 0)</strong></p>
  <p>Ive already tried looking at other stackoverflows and every possible 'try''continue' codes, im so confused about what to do.</p>
  <p>I have tried the following:</p>
  <pre><code>try:
      for i in range(len(df)):
          array_thing.append(mycoolfunction(df.iloc[i, 0], df.iloc[i, 1]))
          df['new']=array_thing
      except JSONDecodeError as e:
          continue
  </code></pre>
  <pre><code>
  for i in range(len(df)):
      try:
          array_thing.append(mycoolfunction(df.iloc[i, 0], df.iloc[i, 1]))
          df['new']=array_thing
      except &lt;JSONDecodeError: Expecting value: line 1 column 1 (char 0)&gt; as e:
          print('error!')
  df
  </code></pre>
  <p>none of it works.. I just need it to skip over the error and either not produce anything in that row or just say error and continue.</p>
  <p>something like this in a dataframe:
  | a| b| jsoncode|
  |:---- |:------:| -----:|
  | A123| US    | Error|</p>
  <p>and then just continue showing the json for all those that work.</p>
  <p>thank you!!</p>