@@ -13,7 +13,7 @@ from Oracle Database types to Arrow data types.
1313
1414.. note ::
1515
16- The data frame support in python-oracledb 3.2 is a pre-release and may
16+ The data frame support in python-oracledb 3.3 is a pre-release and may
1717 change in a future version.
1818
1919.. _oracledataframeobj :
@@ -37,45 +37,25 @@ interface, giving access to the underlying Arrow array.
3737OracleDataFrame Methods
3838-----------------------
3939
40- The object implements the Python DataFrame Interchange Protocol `DataFrame API
41- Interface <https://data-apis.org/dataframe-protocol/latest/API.html> `__
42-
4340.. method :: OracleDataFrame.column_arrays()
4441
4542 Returns a list of :ref: `OracleArrowArray <oraclearrowarrayobj >` objects,
4643 each containing a select list column.
4744
48- This is an extension to the DataFrame Interchange Protocol.
49-
5045.. method :: OracleDataFrame.column_names()
5146
5247 Returns a list of the column names in the data frame.
5348
54- .. method :: OracleDataFrame.get_chunks(n_chunks)
55-
56- Returns itself, since python-oracledb only uses one chunk.
57-
5849.. method :: OracleDataFrame.get_column(i)
5950
60- Returns an :ref: `OracleColumn <oraclearrowarrayobj >` object for the column
51+ Returns an :ref: `OracleArrowArray <oraclearrowarrayobj >` object for the column
6152 at the given index ``i ``.
6253
6354.. method :: OracleDataFrame.get_column_by_name(name)
6455
65- Returns an :ref: `OracleColumn <oraclearrowarrayobj >` object for the column
56+ Returns an :ref: `OracleArrowArray <oraclearrowarrayobj >` object for the column
6657 with the given name ``name ``.
6758
68- .. method :: OracleDataFrame.get_columns()
69-
70- Returns a list of :ref: `OracleColumn <oraclearrowarrayobj >` objects, one
71- object for each column in the data frame.
72-
73- .. method :: OracleDataFrame.num_chunks()
74-
75- Return the number of chunks the data frame consists of.
76-
77- This always returns 1.
78-
7959.. method :: OracleDataFrame.num_columns()
8060
8161 Returns the number of columns in the data frame.
@@ -109,120 +89,3 @@ These are used for conversion to `PyArrow Tables
10989:ref: `dataframeformat `.
11090
11191.. versionadded :: 3.0.0
112-
113- .. _oraclecolumnobj :
114-
115- OracleColumn Objects
116- ====================
117-
118- OracleColumn objects are returned by :meth: `OracleDataFrame.get_column() `,
119- :meth: `OracleDataFrame.get_column_by_name() `, and
120- :meth: `OracleDataFrame.get_columns() `.
121-
122- .. versionadded :: 3.0.0
123-
124- .. _oraclecolumnmeth :
125-
126- OracleColumn Methods
127- --------------------
128-
129- .. method :: OracleColumn.get_buffers()
130-
131- Returns a dictionary containing the underlying buffers.
132-
133- The returned dictionary contains the ``data ``, ``validity ``, and ``offset ``
134- keys.
135-
136- The ``data `` attribute is a two-element tuple whose first element is a
137- buffer containing the data and whose second element is the data buffer's
138- associated dtype.
139-
140- The ``validity `` attribute is a a two-element tuple whose first element
141- is a buffer containing mask values indicating missing data and whose
142- second element is the mask value buffer's associated dtype. The value of
143- this attribute is *None * if the null representation is not a bit or byte
144- mask.
145-
146- The ``offset `` attribute is a two-element tuple whose first element is a
147- buffer containing the offset values for variable-size binary data (for
148- example, variable-length strings) and whose second element is the offsets
149- buffer's associated dtype. The value of this attribute is *None * if the
150- data buffer does not have an associated offsets buffer.
151-
152- .. method :: OracleColumn.get_chunks(n_chunks)
153-
154- Returns itself, since python-oracledb only uses one chunk.
155-
156- .. method :: OracleColumn.num_chunks()
157-
158- Returns the number of chunks the column consists of.
159-
160- This always returns 1.
161-
162- .. method :: OracleColumn.size()
163-
164- Returns the number of rows in the column.
165-
166- .. _oraclecolumnattr :
167-
168- OracleColumn Attributes
169- -----------------------
170-
171- .. attribute :: OracleColumn.describe_null
172-
173- This read-only property returns the description of the null representation
174- that the column uses.
175-
176- .. attribute :: OracleColumn.dtype
177-
178- This read-only attribute returns the Dtype description as a tuple
179- containing the values for the attributes ``kind ``, ``bit-width ``,
180- ``format string ``, and ``endianess ``.
181-
182- The ``kind `` attribute specifies the type of the data.
183-
184- The ``bit-width `` attribute specifies the number of bits as an integer.
185-
186- The ``format string `` attribute specifies the data type description format
187- string in Apache Arrow C Data Interface format.
188-
189- The ``endianess `` attribute specifies the byte order of the data type.
190- Currently, only native endianess is supported.
191-
192- .. attribute :: OracleColumn.metadata
193-
194- This read-only attribute returns the metadata for the column as a
195- dictionary with string keys.
196-
197- .. attribute :: OracleColumn.null_count
198-
199- This read-only attribute returns the number of null row values, if known.
200-
201- .. attribute :: OracleColumn.offset
202-
203- This read-only attribute specifies the offset of the first row.
204-
205- .. _oraclecolumnbufferobj :
206-
207- OracleColumnBuffer Objects
208- ==========================
209-
210- A buffer object backed by an ArrowArray consisting of a single chunk.
211-
212- This is an internal class used for conversion to third party data frames.
213-
214- .. versionadded :: 3.0.0
215-
216- .. _oraclecolumnbufferattr :
217-
218- OracleColumnBuffer Attributes
219- -----------------------------
220-
221- .. attribute :: OracleColumnBuffer.bufsize
222-
223- This read-only property returns the buffer size in bytes.
224-
225- .. attribute :: OracleColumnBuffer.ptr
226-
227- This read-only attribute specifies the pointer to the start of the buffer
228- as an integer.
0 commit comments