Parameters: |
- df (pandas.DataFrame) –
-- schema (pyarrow.Schema, optional) – The expected schema of the RecordBatch. This can be used to
+
- schema (pyarrow.Schema, optional) – The expected schema of the RecordBatch. This can be used to
indicate the type of columns if we cannot infer it automatically.
- preserve_index (bool, optional) – Whether to store the index as an additional column in the resulting
RecordBatch .
@@ -299,6 +303,24 @@ number of rows.
+
+-
+
replace_schema_metadata (self, dict metadata=None)
+EXPERIMENTAL: Create shallow copy of record batch by replacing schema
+key-value metadata with the indicated new metadata (which may be None,
+which deletes any existing metadata
+
+
+
+
+Parameters: | metadata (dict, default None) – |
+
+Returns: | shallow_copy (RecordBatch) |
+
+
+
+
+
-
schema
http://git-wip-us.apache.org/repos/asf/arrow-site/blob/4d4a3202/docs/python/generated/pyarrow.RecordBatchFileReader.html
----------------------------------------------------------------------
diff --git a/docs/python/generated/pyarrow.RecordBatchFileReader.html b/docs/python/generated/pyarrow.RecordBatchFileReader.html
index e935e24..4a3871e 100644
--- a/docs/python/generated/pyarrow.RecordBatchFileReader.html
+++ b/docs/python/generated/pyarrow.RecordBatchFileReader.html
@@ -73,7 +73,8 @@
- Memory and IO Interfaces
- In-Memory Data Model
- IPC: Fast Streaming and Serialization
-- Filesystem Interfaces
+- File System Interfaces
+- The Plasma In-Memory Object Store
- Using PyArrow with pandas
- Reading and Writing the Apache Parquet Format
- API Reference
@@ -101,7 +102,7 @@
-
- « pyarrow.MessageReader
+ « pyarrow.Messa...
-
http://git-wip-us.apache.org/repos/asf/arrow-site/blob/4d4a3202/docs/python/generated/pyarrow.RecordBatchFileWriter.html
----------------------------------------------------------------------
diff --git a/docs/python/generated/pyarrow.RecordBatchFileWriter.html b/docs/python/generated/pyarrow.RecordBatchFileWriter.html
index 7b0e569..e620c92 100644
--- a/docs/python/generated/pyarrow.RecordBatchFileWriter.html
+++ b/docs/python/generated/pyarrow.RecordBatchFileWriter.html
@@ -73,7 +73,8 @@
- Memory and IO Interfaces
- In-Memory Data Model
- IPC: Fast Streaming and Serialization
-- Filesystem Interfaces
+- File System Interfaces
+- The Plasma In-Memory Object Store
- Using PyArrow with pandas
- Reading and Writing the Apache Parquet Format
- API Reference
@@ -152,7 +153,7 @@
Parameters: |
- sink (str, pyarrow.NativeFile, or file-like Python object) – Either a file path, or a writeable file object
-- schema (pyarrow.Schema) – The Arrow schema for data to be written to the file
+- schema (pyarrow.Schema) – The Arrow schema for data to be written to the file
|
@@ -174,22 +175,32 @@
|
close (self) |
- |
+Close stream and write end-of-stream 0 marker |
write_batch (self, RecordBatch batch) |
- |
+Write RecordBatch to stream |
-
close (self)
-
+Close stream and write end-of-stream 0 marker
+
-
write_batch (self, RecordBatch batch)
-
+Write RecordBatch to stream
+
+
http://git-wip-us.apache.org/repos/asf/arrow-site/blob/4d4a3202/docs/python/generated/pyarrow.RecordBatchStreamReader.html
----------------------------------------------------------------------
diff --git a/docs/python/generated/pyarrow.RecordBatchStreamReader.html b/docs/python/generated/pyarrow.RecordBatchStreamReader.html
index 2c1f6cc..374693a 100644
--- a/docs/python/generated/pyarrow.RecordBatchStreamReader.html
+++ b/docs/python/generated/pyarrow.RecordBatchStreamReader.html
@@ -73,7 +73,8 @@
- Memory and IO Interfaces
- In-Memory Data Model
- IPC: Fast Streaming and Serialization
-- Filesystem Interfaces
+- File System Interfaces
+- The Plasma In-Memory Object Store
- Using PyArrow with pandas
- Reading and Writing the Apache Parquet Format
- API Reference
http://git-wip-us.apache.org/repos/asf/arrow-site/blob/4d4a3202/docs/python/generated/pyarrow.RecordBatchStreamWriter.html
----------------------------------------------------------------------
diff --git a/docs/python/generated/pyarrow.RecordBatchStreamWriter.html b/docs/python/generated/pyarrow.RecordBatchStreamWriter.html
index 0429933..1847f86 100644
--- a/docs/python/generated/pyarrow.RecordBatchStreamWriter.html
+++ b/docs/python/generated/pyarrow.RecordBatchStreamWriter.html
@@ -73,7 +73,8 @@
- Memory and IO Interfaces
- In-Memory Data Model
- IPC: Fast Streaming and Serialization
-- Filesystem Interfaces
+- File System Interfaces
+- The Plasma In-Memory Object Store
- Using PyArrow with pandas
- Reading and Writing the Apache Parquet Format
- API Reference
@@ -105,7 +106,7 @@
-
- pyarrow.open_file »
+ pyarrow.open_... »
@@ -152,7 +153,7 @@
Parameters: |
- sink (str, pyarrow.NativeFile, or file-like Python object) – Either a file path, or a writeable file object
-- schema (pyarrow.Schema) – The Arrow schema for data to be written to the file
+- schema (pyarrow.Schema) – The Arrow schema for data to be written to the file
|
@@ -174,22 +175,32 @@
|
close (self) |
- |
+Close stream and write end-of-stream 0 marker |
write_batch (self, RecordBatch batch) |
- |
+Write RecordBatch to stream |
-
close (self)
-
+Close stream and write end-of-stream 0 marker
+
-
write_batch (self, RecordBatch batch)
-
+Write RecordBatch to stream
+
+
http://git-wip-us.apache.org/repos/asf/arrow-site/blob/4d4a3202/docs/python/generated/pyarrow.Scalar.html
----------------------------------------------------------------------
diff --git a/docs/python/generated/pyarrow.Scalar.html b/docs/python/generated/pyarrow.Scalar.html
index 512eb28..702be51 100644
--- a/docs/python/generated/pyarrow.Scalar.html
+++ b/docs/python/generated/pyarrow.Scalar.html
@@ -73,7 +73,8 @@
- Memory and IO Interfaces
- In-Memory Data Model
- IPC: Fast Streaming and Serialization
-- Filesystem Interfaces
+- File System Interfaces
+- The Plasma In-Memory Object Store
- Using PyArrow with pandas
- Reading and Writing the Apache Parquet Format
- API Reference
@@ -105,7 +106,7 @@
-
- pyarrow.ArrayValue »
+ pyarrow.Array... »
http://git-wip-us.apache.org/repos/asf/arrow-site/blob/4d4a3202/docs/python/generated/pyarrow.StringValue.html
----------------------------------------------------------------------
diff --git a/docs/python/generated/pyarrow.StringValue.html b/docs/python/generated/pyarrow.StringValue.html
index 77cf2a3..e8f0885 100644
--- a/docs/python/generated/pyarrow.StringValue.html
+++ b/docs/python/generated/pyarrow.StringValue.html
@@ -73,7 +73,8 @@
- Memory and IO Interfaces
- In-Memory Data Model
- IPC: Fast Streaming and Serialization
-- Filesystem Interfaces
+- File System Interfaces
+- The Plasma In-Memory Object Store
- Using PyArrow with pandas
- Reading and Writing the Apache Parquet Format
- API Reference
@@ -101,7 +102,7 @@
-
- « pyarrow.BinaryValue
+ « pyarrow.Binar...
-
http://git-wip-us.apache.org/repos/asf/arrow-site/blob/4d4a3202/docs/python/generated/pyarrow.Table.html
----------------------------------------------------------------------
diff --git a/docs/python/generated/pyarrow.Table.html b/docs/python/generated/pyarrow.Table.html
index 9ea9fe8..86105ef 100644
--- a/docs/python/generated/pyarrow.Table.html
+++ b/docs/python/generated/pyarrow.Table.html
@@ -73,7 +73,8 @@
- Memory and IO Interfaces
- In-Memory Data Model
- IPC: Fast Streaming and Serialization
-- Filesystem Interfaces
+- File System Interfaces
+- The Plasma In-Memory Object Store
- Using PyArrow with pandas
- Reading and Writing the Apache Parquet Format
- API Reference
@@ -101,7 +102,7 @@
-
- « pyarrow.RecordBatch
+ « pyarrow.Recor...
-
@@ -170,7 +171,7 @@ methods instead.
append_column (self, Column column) |
Append column at end of columns. |
-column (self, int64_t i) |
+ column (self, int i) |
Select a column by its numeric index. |
equals (self, Table other) |
@@ -191,10 +192,13 @@ methods instead.
remove_column (self, int i) |
Create new Table with the indicated column removed |
-to_pandas (self[, nthreads]) |
+ replace_schema_metadata (self, dict metadata=None) |
+EXPERIMENTAL: Create shallow copy of table by replacing schema |
+
+to_pandas (self[, nthreads, ...]) |
Convert the arrow::Table to a pandas DataFrame |
-to_pydict (self) |
+ to_pydict (self) |
Converted the arrow::Table to an OrderedDict |
|
---|