<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>pandas | Sajid Rahman</title>
    <link>https://www.cise.ufl.edu/~msr/tag/pandas/</link>
      <atom:link href="https://www.cise.ufl.edu/~msr/tag/pandas/index.xml" rel="self" type="application/rss+xml" />
    <description>pandas</description>
    <generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><copyright>© 2021 - Sajid Rahman</copyright><lastBuildDate>Thu, 07 Oct 2021 00:00:00 +0000</lastBuildDate>
    <image>
      <url>https://www.cise.ufl.edu/~msr/media/icon_hu257dded1a2315d693952aa7ac83b6d59_5868_512x512_fill_lanczos_center_3.png</url>
      <title>pandas</title>
      <link>https://www.cise.ufl.edu/~msr/tag/pandas/</link>
    </image>
    
    <item>
      <title>Miscellaneous Troubleshooting Tricks</title>
      <link>https://www.cise.ufl.edu/~msr/post/misc-troubleshooting/</link>
      <pubDate>Thu, 07 Oct 2021 00:00:00 +0000</pubDate>
      <guid>https://www.cise.ufl.edu/~msr/post/misc-troubleshooting/</guid>
      <description>&lt;h3 id=&#34;fixing-_csverror-field-larger-than-field-limit-131072&#34;&gt;Fixing &lt;code&gt;_csv.Error: field larger than field limit (131072)&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;: We need to increase &lt;code&gt;csv.field_size_limit&lt;/code&gt;. The following code snippet shows the configuration how to increase default csv field limit. &lt;strong&gt;Note&lt;/strong&gt;, this technique is also useful if you run into this issue while workding with Panda&amp;rsquo;s &lt;code&gt;pd.read_csv()&lt;/code&gt; method as well.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&#34;language-python&#34;&gt;import csv
#if you&#39;re not sure what&#39;d be the maximum field size, use system maxsize
field_size_limit = sys.maxsize

while True:
    try:
        csv.field_size_limit(field_size_limit)
        break
    except OverflowError:
        field_size_limit = int(field_size_limit / 10)
&lt;/code&gt;&lt;/pre&gt;
</description>
    </item>
    
  </channel>
</rss>
