mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 09:05:47 +08:00
add absolute imports
This commit is contained in:
1 parent
c776e0f5e6
commit
9dfc978cf5
48 files changed
+95
No files matched your search
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from libcpp.memory cimport shared_ptr
|
||||
from pyarrow.includes.libarrow cimport (CArray, CBuffer, CColumn, CDataType,
|
||||
CField, CRecordBatch, CSchema,
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
# flake8: noqa
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os as _os
|
||||
import sys as _sys
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
# cython: embedsignature = True
|
||||
# cython: language_level = 3
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from pyarrow.includes.common cimport *
|
||||
from pyarrow.includes.libarrow cimport *
|
||||
from pyarrow.lib cimport (check_status, Field, MemoryPool, ensure_type,
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
# cython: language_level = 3
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from pyarrow.lib cimport *
|
||||
from pyarrow.includes.common cimport *
|
||||
from pyarrow.includes.libarrow cimport *
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
# under the License.
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from pyarrow.compat import tobytes
|
||||
from pyarrow.lib cimport *
|
||||
from pyarrow.includes.libarrow_cuda cimport *
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
# cython: language_level = 3
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import collections
|
||||
import enum
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
# cython: embedsignature = True
|
||||
# cython: language_level = 3
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from pyarrow.includes.common cimport *
|
||||
from pyarrow.includes.libarrow cimport *
|
||||
from pyarrow.lib cimport (check_status, Field, MemoryPool, ensure_type,
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
# distutils: language = c++
|
||||
# cython: language_level = 3
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from libc.string cimport const_char
|
||||
from libcpp.vector cimport vector as std_vector
|
||||
from pyarrow.includes.common cimport *
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
# distutils: language = c++
|
||||
# cython: embedsignature = True
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from cython.operator cimport dereference as deref
|
||||
from libcpp.vector cimport vector as std_vector
|
||||
from pyarrow.includes.common cimport *
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
# distutils: language = c++
|
||||
# cython: language_level = 3
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from pyarrow.includes.common cimport *
|
||||
from pyarrow.includes.libarrow cimport (CChunkedArray, CSchema, CStatus,
|
||||
CTable, CMemoryPool, CBuffer,
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
# distutils: language = c++
|
||||
# cython: embedsignature = True
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import io
|
||||
import six
|
||||
import warnings
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
# cython: embedsignature = True
|
||||
# cython: language_level = 3
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from libcpp cimport bool as c_bool, nullptr
|
||||
from libcpp.memory cimport shared_ptr, unique_ptr, make_shared
|
||||
from libcpp.string cimport string as c_string
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
cdef _sequence_to_array(object sequence, object mask, object size,
|
||||
DataType type, CMemoryPool* pool, c_bool from_pandas):
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
def benchmark_PandasObjectIsNull(list obj):
|
||||
Benchmark_PandasObjectIsNull(obj)
|
||||
@@ -17,4 +17,6 @@
|
||||
|
||||
# flake8: noqa
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from pyarrow.lib import benchmark_PandasObjectIsNull
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import six
|
||||
|
||||
from pyarrow.compat import tobytes
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
# flake8: noqa
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import itertools
|
||||
|
||||
import numpy as np
|
||||
|
||||
@@ -15,4 +15,6 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from pyarrow._csv import ReadOptions, ParseOptions, ConvertOptions, read_csv # noqa
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
# flake8: noqa
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from pyarrow._cuda import (Context, IpcMemHandle, CudaBuffer,
|
||||
HostBuffer, BufferReader, BufferWriter,
|
||||
new_host_buffer,
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from pyarrow.includes.libarrow cimport CStatus
|
||||
from pyarrow.includes.common cimport c_string
|
||||
from pyarrow.compat import frombytes
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
# ---------------------------------------------------------------------
|
||||
# Implement legacy Feather file format
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
class FeatherError(Exception):
|
||||
pass
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
|
||||
import six
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
import inspect
|
||||
import posixpath
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
|
||||
if sys.version_info < (3,):
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
# cython: embedsignature = True
|
||||
# cython: language_level = 3
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from libcpp cimport bool as c_bool, nullptr
|
||||
from libcpp.memory cimport shared_ptr, unique_ptr, make_shared
|
||||
from libcpp.string cimport string as c_string
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
import posixpath
|
||||
import sys
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
# ----------------------------------------------------------------------
|
||||
# HDFS IO implementation
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
_HDFS_PATH_RE = re.compile(r'hdfs://(.*):(\d+)(.*)')
|
||||
|
||||
try:
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
# Cython wrappers for IO interfaces defined in arrow::io and messaging in
|
||||
# arrow::ipc
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from libc.stdlib cimport malloc, free
|
||||
|
||||
import re
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
cdef class Message:
|
||||
"""
|
||||
Container for an Arrow IPC message with metadata and optional body
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
# Arrow file and stream reader/writer classes, and other messaging tools
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import pyarrow as pa
|
||||
|
||||
from pyarrow.lib import (Message, MessageReader, # noqa
|
||||
|
||||
@@ -15,4 +15,6 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from pyarrow._json import ReadOptions, ParseOptions, read_json # noqa
|
||||
@@ -25,6 +25,8 @@ through jpype. Modules that talk to a remote JVM like py4j will not work as the
|
||||
memory addresses reported by them are not reachable in the python process.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import pyarrow as pa
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
# cython: language_level = 3
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from pyarrow.includes.common cimport *
|
||||
from pyarrow.includes.libarrow cimport *
|
||||
from pyarrow.includes.libarrow cimport CStatus
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
# distutils: language = c++
|
||||
# cython: embedsignature = True
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import datetime
|
||||
import decimal as _pydecimal
|
||||
import json
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
# distutils: language = c++
|
||||
# cython: embedsignature = True
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
cdef class MemoryPool:
|
||||
"""
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from itertools import count
|
||||
from numbers import Integral
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
# pandas lazy-loading API shim that reduces API call and import overhead
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
cdef class _PandasAPIShim(object):
|
||||
"""
|
||||
Lazy pandas importer that isolates usages of pandas APIs and avoids
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import ast
|
||||
import json
|
||||
import operator
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from collections import defaultdict
|
||||
from concurrent import futures
|
||||
from functools import partial
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import contextlib
|
||||
import os
|
||||
import pyarrow as pa
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from libcpp.memory cimport shared_ptr
|
||||
from pyarrow.includes.libarrow cimport (CArray, CColumn, CDataType, CField,
|
||||
CRecordBatch, CSchema,
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
_NULL = NA = None
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from cpython.ref cimport PyObject
|
||||
|
||||
import six
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import collections
|
||||
import six
|
||||
import sys
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
cdef class ChunkedArray(_PandasConvertible):
|
||||
"""
|
||||
Array backed via one or more memory chunks.
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re
|
||||
import warnings
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
# Tools for dealing with Arrow type metadata in Python
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from pyarrow.lib import (is_boolean_value, # noqa
|
||||
is_integer_value,
|
||||
is_float_value)
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
# Miscellaneous utility code
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import functools
|
||||
import six
|
||||
import warnings
|
||||
|
||||
Reference in new issue
Block a user