add absolute imports

This commit is contained in:
Philipp Moritz committed 2019-05-25 18:21:41 -07:00
1 parent c776e0f5e6
commit 9dfc978cf5
48 files changed
+95

No files matched your search

+2
View File
@@ -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,
+2
View File
@@ -17,6 +17,8 @@
# flake8: noqa
from __future__ import absolute_import
import os as _os
import sys as _sys
+2
View File
@@ -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,
+2
View File
@@ -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 *
+2
View File
@@ -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 *
+2
View File
@@ -17,6 +17,8 @@
# cython: language_level = 3
from __future__ import absolute_import
import collections
import enum
+2
View File
@@ -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,
+2
View File
@@ -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 *
+2
View File
@@ -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 *
+2
View File
@@ -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,
+2
View File
@@ -19,6 +19,8 @@
# distutils: language = c++
# cython: embedsignature = True
from __future__ import absolute_import
import io
import six
import warnings
+2
View File
@@ -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
+2
View File
@@ -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):
+2
View File
@@ -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)
+2
View File
@@ -17,4 +17,6 @@
# flake8: noqa
from __future__ import absolute_import
from pyarrow.lib import benchmark_PandasObjectIsNull
+2
View File
@@ -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
+2
View File
@@ -17,6 +17,8 @@
# flake8: noqa
from __future__ import absolute_import
import itertools
import numpy as np
+2
View File
@@ -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
+2
View File
@@ -17,6 +17,8 @@
# flake8: noqa
from __future__ import absolute_import
from pyarrow._cuda import (Context, IpcMemHandle, CudaBuffer,
HostBuffer, BufferReader, BufferWriter,
new_host_buffer,
+2
View File
@@ -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
+1
View File
@@ -18,6 +18,7 @@
# ---------------------------------------------------------------------
# Implement legacy Feather file format
from __future__ import absolute_import
class FeatherError(Exception):
pass
+2
View File
@@ -15,6 +15,8 @@
# specific language governing permissions and limitations
# under the License.
from __future__ import absolute_import
import os
import six
+2
View File
@@ -15,6 +15,8 @@
# specific language governing permissions and limitations
# under the License.
from __future__ import absolute_import
import os
import inspect
import posixpath
+2
View File
@@ -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,):
+2
View File
@@ -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
+2
View File
@@ -15,6 +15,8 @@
# specific language governing permissions and limitations
# under the License.
from __future__ import absolute_import
import os
import posixpath
import sys
+2
View File
@@ -18,6 +18,8 @@
# ----------------------------------------------------------------------
# HDFS IO implementation
from __future__ import absolute_import
_HDFS_PATH_RE = re.compile(r'hdfs://(.*):(\d+)(.*)')
try:
+2
View File
@@ -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
+2
View File
@@ -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
+2
View File
@@ -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
+2
View File
@@ -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
+2
View File
@@ -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
+2
View File
@@ -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
+2
View File
@@ -19,6 +19,8 @@
# distutils: language = c++
# cython: embedsignature = True
from __future__ import absolute_import
import datetime
import decimal as _pydecimal
import json
+2
View File
@@ -19,6 +19,8 @@
# distutils: language = c++
# cython: embedsignature = True
from __future__ import absolute_import
cdef class MemoryPool:
"""
+2
View File
@@ -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
+2
View File
@@ -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
+2
View File
@@ -15,6 +15,8 @@
# specific language governing permissions and limitations
# under the License.
from __future__ import absolute_import
import ast
import json
import operator
+2
View File
@@ -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
+2
View File
@@ -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
+2
View File
@@ -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,
+2
View File
@@ -15,6 +15,8 @@
# specific language governing permissions and limitations
# under the License.
from __future__ import absolute_import
_NULL = NA = None
+2
View File
@@ -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
+2
View File
@@ -15,6 +15,8 @@
# specific language governing permissions and limitations
# under the License.
from __future__ import absolute_import
import collections
import six
import sys
+2
View File
@@ -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.
+2
View File
@@ -15,6 +15,8 @@
# specific language governing permissions and limitations
# under the License.
from __future__ import absolute_import
import re
import warnings
+2
View File
@@ -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)
+2
View File
@@ -17,6 +17,8 @@
# Miscellaneous utility code
from __future__ import absolute_import
import functools
import six
import warnings