title: Pandas Json : "TypeError: to_json() got an unexpected keyword argument 'indent' "
body: <p>Using this simple piece of code, i'm getting an error.</p>
  <pre><code>import json
  import pandas as pd
  df = pd.DataFrame(
      [[&quot;a&quot;, &quot;b&quot;], [&quot;c&quot;, &quot;d&quot;]],
      index=[&quot;row 1&quot;, &quot;row 2&quot;],
      columns=[&quot;col 1&quot;, &quot;col 2&quot;],
  )
  
  result = df.to_json(orient=&quot;split&quot;,indent=None)
  </code></pre>
  <p>I am getting this error :
  &quot;TypeError: to_json() got an unexpected keyword argument 'indent' &quot;</p>
  <p>But in the documentation, it seems pretty clear that it is one of the parameter possible.
  <a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_json.html" rel="nofollow noreferrer">https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_json.html</a></p>
  <p>Do you know what is happening here? Or i don't know how to read documentation. Thank you!</p>