Skip to content

Commit

Permalink
Fix rebase error
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirschfeld committed Dec 6, 2017
1 parent 44b0fe8 commit 7b25fbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 59 deletions.
42 changes: 3 additions & 39 deletions pandas/io/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,6 @@ def __init__(self):
import pyarrow
import pyarrow.parquet
except ImportError:
<<<<<<< HEAD
raise ImportError("pyarrow is required for parquet support\n\n"
"you can install via conda\n"
"conda install pyarrow -c conda-forge\n"
"\nor via pip\n"
"pip install -U pyarrow\n")

if LooseVersion(pyarrow.__version__) < LooseVersion('0.4.1'):
raise ImportError("pyarrow >= 0.4.1 is required for parquet"
"support\n\n"
"you can install via conda\n"
"conda install pyarrow -c conda-forge\n"
"\nor via pip\n"
"pip install -U pyarrow\n")

self._pyarrow_lt_050 = LooseVersion(pyarrow.__version__) < '0.5.0'
self._pyarrow_lt_060 = LooseVersion(pyarrow.__version__) < '0.6.0'
self._pyarrow_lt_070 = LooseVersion(pyarrow.__version__) < '0.7.0'
=======
raise ImportError(
"pyarrow is required for parquet support\n\n"
"you can install via conda\n"
Expand All @@ -91,13 +72,12 @@ def __init__(self):
)
if LooseVersion(pyarrow.__version__) < '0.7.0':
raise ImportError(
"pyarrow >= 0.4.1 is required for parquet support\n\n"
"pyarrow >= 0.7.0 is required for parquet support\n\n"
"you can install via conda\n"
"conda install pyarrow -c conda-forge\n"
"\nor via pip\n"
"pip install -U pyarrow\n"
)
>>>>>>> Updated pyarrow dep to 0.7.0
self.api = pyarrow

def write(self, df, path, compression='snappy',
Expand All @@ -123,22 +103,6 @@ def __init__(self):
try:
import fastparquet
except ImportError:
<<<<<<< HEAD
raise ImportError("fastparquet is required for parquet support\n\n"
"you can install via conda\n"
"conda install fastparquet -c conda-forge\n"
"\nor via pip\n"
"pip install -U fastparquet")

if LooseVersion(fastparquet.__version__) < LooseVersion('0.1.0'):
raise ImportError("fastparquet >= 0.1.0 is required for parquet "
"support\n\n"
"you can install via conda\n"
"conda install fastparquet -c conda-forge\n"
"\nor via pip\n"
"pip install -U fastparquet")

=======
raise ImportError(
"fastparquet is required for parquet support\n\n"
"you can install via conda\n"
Expand All @@ -153,8 +117,8 @@ def __init__(self):
"you can install via conda\n"
"conda install fastparquet -c conda-forge\n"
"\nor via pip\n"
"pip install -U fastparquet")
>>>>>>> Updated pyarrow dep to 0.7.0
"pip install -U fastparquet"
)
self.api = fastparquet

def write(self, df, path, compression='snappy', **kwargs):
Expand Down
20 changes: 0 additions & 20 deletions pandas/tests/io/test_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,7 @@ def engine(request):
def pa():
if not _HAVE_PYARROW:
pytest.skip("pyarrow is not installed")
<<<<<<< HEAD
return 'pyarrow'


@pytest.fixture
def pa_lt_070():
if not _HAVE_PYARROW:
pytest.skip("pyarrow is not installed")
if LooseVersion(pyarrow.__version__) >= LooseVersion('0.7.0'):
pytest.skip("pyarrow is >= 0.7.0")
return 'pyarrow'


@pytest.fixture
def pa_ge_070():
if not _HAVE_PYARROW:
pytest.skip("pyarrow is not installed")
if LooseVersion(pyarrow.__version__) < LooseVersion('0.7.0'):
=======
if LooseVersion(pyarrow.__version__) < '0.7.0':
>>>>>>> Updated pyarrow dep to 0.7.0
pytest.skip("pyarrow is < 0.7.0")
return 'pyarrow'

Expand Down

0 comments on commit 7b25fbe

Please sign in to comment.