<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get Size of a column in Bytes for a Pyspark Data frame in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/get-size-of-a-column-in-bytes-for-a-pyspark-data-frame/m-p/27195#M19075</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;There isn't one size for a column; it takes some amount of bytes in memory, but a different amount potentially when serialized on disk or stored in Parquet. You can work out the size in memory from its data type; an array of 100 bytes takes 100 bytes; a long takes 8 bytes, etc.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Apr 2020 21:16:43 GMT</pubDate>
    <dc:creator>sean_owen</dc:creator>
    <dc:date>2020-04-17T21:16:43Z</dc:date>
    <item>
      <title>Get Size of a column in Bytes for a Pyspark Data frame</title>
      <link>https://community.databricks.com/t5/data-engineering/get-size-of-a-column-in-bytes-for-a-pyspark-data-frame/m-p/27194#M19074</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;I have a column in a dataframe which i struct type.I want to find the size of the column in bytes.it is getting failed while loading in snowflake.&lt;P&gt;&lt;/P&gt;I could see size functions avialable to get the length.how to calculate the size in bytes for a column in pyspark dataframe.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;pyspark.sql.functions.size(col)&lt;P&gt;&lt;/P&gt;Collection function: returns the length of the array or map stored in the column.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Please help me on this case.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Thanks 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 18:49:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-size-of-a-column-in-bytes-for-a-pyspark-data-frame/m-p/27194#M19074</guid>
      <dc:creator>Anbazhagananbut</dc:creator>
      <dc:date>2020-04-16T18:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get Size of a column in Bytes for a Pyspark Data frame</title>
      <link>https://community.databricks.com/t5/data-engineering/get-size-of-a-column-in-bytes-for-a-pyspark-data-frame/m-p/27195#M19075</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;There isn't one size for a column; it takes some amount of bytes in memory, but a different amount potentially when serialized on disk or stored in Parquet. You can work out the size in memory from its data type; an array of 100 bytes takes 100 bytes; a long takes 8 bytes, etc.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 21:16:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-size-of-a-column-in-bytes-for-a-pyspark-data-frame/m-p/27195#M19075</guid>
      <dc:creator>sean_owen</dc:creator>
      <dc:date>2020-04-17T21:16:43Z</dc:date>
    </item>
  </channel>
</rss>

