<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Diego A. Carrasco Gubernatis | Personal Website (Posts about pandas)</title><link>https://diegocarrasco.com/</link><description></description><atom:link href="https://diegocarrasco.com/categories/pandas.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2026 &lt;a href="mailto:hi@diegocarrasco.com"&gt;Diego Carrasco G.&lt;/a&gt; </copyright><lastBuildDate>Wed, 11 Nov 2026 09:05:16 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>How to Read Large CSV Files with Pandas Without Knowing its Column Data Types</title><link>https://diegocarrasco.com/how-to-read-large-csv-files-with-pandas-without-knowing-data-types/</link><dc:creator>Diego Carrasco G.</dc:creator><description>&lt;figure&gt;&lt;img src="https://diegocarrasco.com/images/social-images/how-to-read-large-csv--with-pandas-without-knowing-data-types.jpg"&gt;&lt;/figure&gt; &lt;p&gt;&lt;strong&gt;TLDR&lt;/strong&gt;: read a sample of the data, infer the data types, and read the full data with the inferred data types.&lt;/p&gt;
&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://diegocarrasco.com/how-to-read-large-csv-files-with-pandas-without-knowing-data-types/#context"&gt;Context&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://diegocarrasco.com/how-to-read-large-csv-files-with-pandas-without-knowing-data-types/#steps"&gt;Steps&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="https://diegocarrasco.com/how-to-read-large-csv-files-with-pandas-without-knowing-data-types/#1-read-a-sample-of-the-data"&gt;1. Read a sample of the data&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="https://diegocarrasco.com/how-to-read-large-csv-files-with-pandas-without-knowing-data-types/#use-nrows-parameter"&gt;Use nrows parameter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://diegocarrasco.com/how-to-read-large-csv-files-with-pandas-without-knowing-data-types/#use-usecols-parameter"&gt;Use usecols parameter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://diegocarrasco.com/how-to-read-large-csv-files-with-pandas-without-knowing-data-types/#use-nrows-and-usecols-parameter-together"&gt;Use nrows and usecols parameter together&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://diegocarrasco.com/how-to-read-large-csv-files-with-pandas-without-knowing-data-types/#2-inspect-data-types"&gt;2. Inspect Data Types&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="https://diegocarrasco.com/how-to-read-large-csv-files-with-pandas-without-knowing-data-types/#use-dtypes-attribute"&gt;Use dtypes attribute&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://diegocarrasco.com/how-to-read-large-csv-files-with-pandas-without-knowing-data-types/#3-define-data-types-manually"&gt;3. Define data types manually&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://diegocarrasco.com/how-to-read-large-csv-files-with-pandas-without-knowing-data-types/#4-read-the-full-data-with-the-manually-defined-data-types"&gt;4. Read the full data with the manually-defined data types&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://diegocarrasco.com/how-to-read-large-csv-files-with-pandas-without-knowing-data-types/#5-use-chunksize-parameter-if-the-data-is-too-large-to-fit-in-memory"&gt;5. Use chunksize parameter if the data is too large to fit in memory&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://diegocarrasco.com/how-to-read-large-csv-files-with-pandas-without-knowing-data-types/#references"&gt;References&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h2 id="context"&gt;Context&lt;/h2&gt;
&lt;p&gt;Reading large (and sometimes not so large) CSV files in Pandas is a common problem. It is not uncommon to find CSV 
files 
with millions of rows 
and hundreds of columns, and sometimes the data types of the columns are unknown.&lt;/p&gt;
&lt;h2 id="steps"&gt;Steps&lt;/h2&gt;
&lt;h3 id="1-read-a-sample-of-the-data"&gt;1. Read a sample of the data&lt;/h3&gt;
&lt;h4 id="use-nrows-parameter"&gt;Use &lt;code&gt;nrows&lt;/code&gt; parameter&lt;/h4&gt;
&lt;p&gt;The first step is to read a sample of the data. This is done with the &lt;code&gt;nrows&lt;/code&gt; parameter of the &lt;code&gt;read_csv&lt;/code&gt; function. &lt;/p&gt;
&lt;p&gt;This helps in understanding the data structure without loading the entire file into memory.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="kn"&gt;import&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;pandas&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;as&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;pd&lt;/span&gt;

&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;read_csv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'data.csv'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;nrows&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code&gt;nrows&lt;/code&gt; parameter can be set to any number, but it is recommended to use a number that is large enough to get an 
idea of the data structure, but small enough to not use too much memory.&lt;/p&gt;
&lt;h4 id="use-usecols-parameter"&gt;Use &lt;code&gt;usecols&lt;/code&gt; parameter&lt;/h4&gt;
&lt;p&gt;You can also use less memory by reading only a subset of the columns with the &lt;code&gt;usecols&lt;/code&gt; parameter, if you already 
know which columns you need to use.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="kn"&gt;import&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;pandas&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;as&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;pd&lt;/span&gt;

&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;read_csv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'data.csv'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;nrows&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;usecols&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'col1'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'col2'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;h4 id="use-nrows-and-usecols-parameter-together"&gt;Use &lt;code&gt;nrows&lt;/code&gt; and &lt;code&gt;usecols&lt;/code&gt; parameter together&lt;/h4&gt;
&lt;p&gt;You can use both parameters together to read a sample of the data and only a subset of the columns.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="kn"&gt;import&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;pandas&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;as&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;pd&lt;/span&gt;

&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;read_csv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'data.csv'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;nrows&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;usecols&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'col1'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'col2'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;h3 id="2-inspect-data-types"&gt;2. Inspect Data Types&lt;/h3&gt;
&lt;h4 id="use-dtypes-attribute"&gt;Use &lt;code&gt;dtypes&lt;/code&gt; attribute&lt;/h4&gt;
&lt;p&gt;The next step is to inspect the data types of the columns. This is done with the &lt;code&gt;dtypes&lt;/code&gt; attribute of the dataframe.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dtypes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;h3 id="3-define-data-types-manually"&gt;3. Define data types manually&lt;/h3&gt;
&lt;p&gt;Based on the analysis of the data sample, you can define the data types of the columns manually.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="kn"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;datetime&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timedelta&lt;/span&gt;

&lt;span class="n"&gt;dtypes_dict&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s1"&gt;'col_str'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                  &lt;span class="c1"&gt;# String&lt;/span&gt;
    &lt;span class="s1"&gt;'col_int'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                  &lt;span class="c1"&gt;# Integer&lt;/span&gt;
    &lt;span class="s1"&gt;'col_float'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;              &lt;span class="c1"&gt;# Float&lt;/span&gt;
    &lt;span class="s1"&gt;'col_bool'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                &lt;span class="c1"&gt;# Boolean&lt;/span&gt;
    &lt;span class="s1"&gt;'col_datetime'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;        &lt;span class="c1"&gt;# Datetime&lt;/span&gt;
    &lt;span class="s1"&gt;'col_timedelta'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;timedelta&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;      &lt;span class="c1"&gt;# Timedelta&lt;/span&gt;
    &lt;span class="s1"&gt;'col_category'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'category'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;      &lt;span class="c1"&gt;# Category&lt;/span&gt;
    &lt;span class="s1"&gt;'col_complex'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;complex&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;          &lt;span class="c1"&gt;# Complex number&lt;/span&gt;
    &lt;span class="s1"&gt;'col_bytes'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;              &lt;span class="c1"&gt;# Bytes&lt;/span&gt;
    &lt;span class="s1"&gt;'col_object'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;object&lt;/span&gt;             &lt;span class="c1"&gt;# Generic Python object&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Here are the &lt;a href="https://pandas.pydata.org/docs/user_guide/basics.html#basics-dtypes"&gt;Pandas dtypes&lt;/a&gt; for reference.&lt;/p&gt;
&lt;p&gt;Some of the not-so-common data types are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;category&lt;/code&gt;: A pandas &lt;code&gt;Categorical&lt;/code&gt; type. Useful for columns with a limited number of unique values. (e.g. &lt;code&gt;gender&lt;/code&gt;,
  &lt;code&gt;country&lt;/code&gt;, &lt;code&gt;city&lt;/code&gt;, etc.). Check &lt;a href="https://pandas.pydata.org/docs/user_guide/categorical.html#categorical"&gt;Categorical data&lt;/a&gt; for more information.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;complex&lt;/code&gt;: A complex number. Check &lt;a href="https://docs.python.org/3/library/stdtypes.html#typesnumeric"&gt;Complex Numbers&lt;/a&gt; for more information.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;bytes&lt;/code&gt;: A sequence of bytes. Check &lt;a href="https://docs.python.org/3/library/stdtypes.html#bytes-and-bytearray"&gt;Bytes and Bytearray&lt;/a&gt; for more information.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;object&lt;/code&gt;: A generic Python object. Check &lt;a href="https://docs.python.org/3/library/functions.html#object"&gt;Object&lt;/a&gt; for more information.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;datetime&lt;/code&gt;: A datetime object is a single object containing all the information from a date object and a time object. Check &lt;a href="https://docs.python.org/3/library/datetime.html#datetime-objects"&gt;datetime&lt;/a&gt; 
  for more information.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;timedelta&lt;/code&gt;: A timedelta object represents a duration, the difference between two dates or times. Check &lt;a href="https://docs.python.org/3/library/datetime.html#timedelta-objects"&gt;timedelta&lt;/a&gt; for more information.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="4-read-the-full-data-with-the-manually-defined-data-types"&gt;4. Read the full data with the manually-defined data types&lt;/h3&gt;
&lt;p&gt;The next step is to load the data with the manually-defined data types from the earlier step.&lt;/p&gt;
&lt;p&gt;For this, you can use the &lt;code&gt;dtype&lt;/code&gt; parameter of the &lt;code&gt;read_csv&lt;/code&gt; function.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="kn"&gt;import&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;pandas&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;as&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;pd&lt;/span&gt;

&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;read_csv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'data.csv'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dtype&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;dtypes_dict&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you get a &lt;code&gt;ValueError&lt;/code&gt;, it means that the data types you defined are not compatible with all the data in the file, 
and 
you should check the data types again by using more rows or other chunks of the data. For that you may also use &lt;code&gt;skiprows&lt;/code&gt; parameter.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="kn"&gt;import&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;pandas&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;as&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;pd&lt;/span&gt;

&lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;read_csv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'data.csv'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;skiprows&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;nrows&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;h3 id="5-use-chunksize-parameter-if-the-data-is-too-large-to-fit-in-memory"&gt;5. Use &lt;code&gt;chunksize&lt;/code&gt; parameter if the data is too large to fit in memory&lt;/h3&gt;
&lt;p&gt;If using the options above is not enough to load the data into memory, you can use the &lt;code&gt;chunksize&lt;/code&gt; parameter, which returns an iterator that can be used to read the data. &lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="kn"&gt;import&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;pandas&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;as&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;pd&lt;/span&gt;

&lt;span class="n"&gt;df_iterator&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;read_csv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'data.csv'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;chunksize&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;df_iterator&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# do something with df&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;h2 id="references"&gt;References&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://pandas.pydata.org/docs/user_guide/basics.html#basics-dtypes"&gt;Pandas dtypes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html"&gt;Pandas read_csv&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html#io-chunking"&gt;Pandas IO Chunking&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><category>csv</category><category>data</category><category>data analysis</category><category>data engineering</category><category>data science</category><category>data types</category><category>dataframes</category><category>pandas</category><category>python</category><category>technical</category><guid>how-to-read-large-csv-files-pandas-unknown-types</guid><pubDate>Thu, 14 Dec 2023 08:00:00 GMT</pubDate></item></channel></rss>