<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>momijiame</author_name>
  <author_url>https://blog.hatena.ne.jp/momijiame/</author_url>
  <blog_title>CUBE SUGAR CONTAINER</blog_title>
  <blog_url>https://blog.amedama.jp/</blog_url>
  <categories>
    <anon>Polars</anon>
    <anon>pandas</anon>
    <anon>Python</anon>
  </categories>
  <description>Polars の DataFrame は to_pandas() メソッドを使うことで Pandas の DataFrame に変換できる。 このとき、デフォルトではメモリのコピーが生じる。 pola-rs.github.io ただし、オプションとして use_pyarrow_extension_array=True を渡すとゼロコピーで変換できる。 これは、メモリ上のデータ表現として Apache Arrow を Polars と Pandas の DataFrame で共有できるため。 今回は、この機能について実際にメモリの使用量をプロファイラで確認しながら使ってみよう。 なお、この機能に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.amedama.jp%2Fentry%2Fpolars-to-pandas&quot; title=&quot;Python: Polars の DataFrame をゼロコピーで Pandas の DataFrame に変換する - CUBE SUGAR CONTAINER&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://m.media-amazon.com/images/I/51kU2EFP5UL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-03-03 18:54:47</published>
  <title>Python: Polars の DataFrame をゼロコピーで Pandas の DataFrame に変換する</title>
  <type>rich</type>
  <url>https://blog.amedama.jp/entry/polars-to-pandas</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
