arrow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject [02/15] arrow-site git commit: Update pyarrow Python documentation
Date Mon, 17 Jul 2017 13:06:15 GMT
http://git-wip-us.apache.org/repos/asf/arrow-site/blob/796ce23f/docs/python/parquet.html
----------------------------------------------------------------------
diff --git a/docs/python/parquet.html b/docs/python/parquet.html
index 7f82186..d3a08ee 100644
--- a/docs/python/parquet.html
+++ b/docs/python/parquet.html
@@ -1,5 +1,6 @@
 <!DOCTYPE html>
 
+
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
@@ -37,7 +38,7 @@
 <meta name="apple-mobile-web-app-capable" content="yes">
 
   </head>
-  <body>
+  <body role="document">
 
   <div id="navbar" class="navbar navbar-default navbar-fixed-top">
     <div class="container">
@@ -174,7 +175,7 @@ details.</p>
 <h2>Reading and Writing Single Files<a class="headerlink" href="#reading-and-writing-single-files"
title="Permalink to this headline">¶</a></h2>
 <p>The functions <a class="reference internal" href="generated/pyarrow.parquet.read_table.html#pyarrow.parquet.read_table"
title="pyarrow.parquet.read_table"><code class="xref py py-func docutils literal"><span
class="pre">read_table()</span></code></a> and <a class="reference
internal" href="generated/pyarrow.parquet.write_table.html#pyarrow.parquet.write_table" title="pyarrow.parquet.write_table"><code
class="xref py py-func docutils literal"><span class="pre">write_table()</span></code></a>
 read and write the <a class="reference internal" href="data.html#data-table"><span
class="std std-ref">pyarrow.Table</span></a> objects, respectively.</p>
-<p>Let’s look at a simple table:</p>
+<p>Let&#8217;s look at a simple table:</p>
 <div class="highlight-ipython"><div class="highlight"><pre><span></span><span
class="gp">In [2]: </span><span class="kn">import</span> <span class="nn">numpy</span>
<span class="kn">as</span> <span class="nn">np</span>
 
 <span class="gp">In [3]: </span><span class="kn">import</span> <span
class="nn">pandas</span> <span class="kn">as</span> <span class="nn">pd</span>
@@ -216,7 +217,7 @@ the whole file (due to the columnar layout):</p>
 <span class="go">one: double</span>
 <span class="go">three: bool</span>
 <span class="go">-- metadata --</span>
-<span class="go">pandas: {&quot;pandas_version&quot;: &quot;0.19.0&quot;,
&quot;index_columns&quot;: [&quot;__index_level_0__&quot;], &quot;columns&quot;:
[{&quot;metadata&quot;: null, &quot;name&quot;: &quot;one&quot;, &quot;numpy_type&quot;:
&quot;float64&quot;, &quot;pandas_type&quot;: &quot;float64&quot;},
{&quot;metadata&quot;: null, &quot;name&quot;: &quot;three&quot;,
&quot;numpy_type&quot;: &quot;bool&quot;, &quot;pandas_type&quot;:
&quot;boolean&quot;}, {&quot;metadata&quot;: null, &quot;name&quot;:
&quot;two&quot;, &quot;numpy_type&quot;: &quot;object&quot;, &quot;pandas_type&quot;:
&quot;bytes&quot;}, {&quot;metadata&quot;: null, &quot;name&quot;:
&quot;__index_level_0__&quot;, &quot;numpy_type&quot;: &quot;int64&quot;,
&quot;pandas_type&quot;: &quot;int64&quot;}]}</span>
+<span class="go">pandas: {&quot;pandas_version&quot;: &quot;0.19.2&quot;,
&quot;index_columns&quot;: [&quot;__index_level_0__&quot;], &quot;columns&quot;:
[{&quot;metadata&quot;: null, &quot;numpy_type&quot;: &quot;float64&quot;,
&quot;pandas_type&quot;: &quot;float64&quot;, &quot;name&quot;: &quot;one&quot;},
{&quot;metadata&quot;: null, &quot;numpy_type&quot;: &quot;bool&quot;,
&quot;pandas_type&quot;: &quot;bool&quot;, &quot;name&quot;: &quot;three&quot;},
{&quot;metadata&quot;: null, &quot;numpy_type&quot;: &quot;object&quot;,
&quot;pandas_type&quot;: &quot;unicode&quot;, &quot;name&quot;: &quot;two&quot;},
{&quot;metadata&quot;: null, &quot;numpy_type&quot;: &quot;int64&quot;,
&quot;pandas_type&quot;: &quot;int64&quot;, &quot;name&quot;: &quot;__index_level_0__&quot;}]}</span>
 </pre></div>
 </div>
 <p>We need not use a string to specify the origin of the file. It can be any of:</p>
@@ -236,20 +237,20 @@ maps) will perform the best.</p>
 
 <span class="gp">In [13]: </span><span class="n">parquet_file</span><span
class="o">.</span><span class="n">metadata</span>
 <span class="gh">Out[13]: </span><span class="go"></span>
-<span class="go">&lt;pyarrow._parquet.FileMetaData object at 0x7efc440f5940&gt;</span>
+<span class="go">&lt;pyarrow._parquet.FileMetaData object at 0x2b9643b72cc8&gt;</span>
 <span class="go">  created_by: parquet-cpp version 1.1.1-SNAPSHOT</span>
 <span class="go">  num_columns: 4</span>
 <span class="go">  num_rows: 3</span>
 <span class="go">  num_row_groups: 1</span>
 <span class="go">  format_version: 1.0</span>
-<span class="go">  serialized_size: 803</span>
+<span class="go">  serialized_size: 804</span>
 
 <span class="gp">In [14]: </span><span class="n">parquet_file</span><span
class="o">.</span><span class="n">schema</span>
-<span class="gh">Out[14]: </span><span class="go"></span>
-<span class="go">&lt;pyarrow._parquet.ParquetSchema object at 0x7efc46c13fc8&gt;</span>
+<span class="go">
Mime
View raw message