Skip to content

Commit

Permalink
import _NA_VALUES from common instead of parsers, make import explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegShteynbuk committed Jun 5, 2017
1 parent a115f91 commit 7393db8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pandas/_libs/parsers.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ from pandas.core.algorithms import take_1d
from pandas.core.dtypes.concat import union_categoricals
from pandas import Index

import pandas.io.parsers as parsers
import pandas.io.common as common

import time
import os
Expand Down Expand Up @@ -1378,7 +1378,7 @@ cdef asbytes(object o):
# common NA values
# no longer excluding inf representations
# '1.#INF','-1.#INF', '1.#INF000000',
_NA_VALUES = _ensure_encoded(list(parsers._NA_VALUES))
_NA_VALUES = _ensure_encoded(list(common._NA_VALUES))


def _is_file_like(obj):
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/io/parser/na_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import numpy as np
from numpy import nan

import pandas.io.parsers as parsers
import pandas.io.common as common
import pandas.util.testing as tm

from pandas import DataFrame, Index, MultiIndex
Expand Down Expand Up @@ -72,7 +72,7 @@ def test_default_na_values(self):
_NA_VALUES = set(['-1.#IND', '1.#QNAN', '1.#IND', '-1.#QNAN',
'#N/A', 'N/A', 'n/a', 'NA', '#NA', 'NULL', 'null',
'NaN', 'nan', '-NaN', '-nan', '#N/A N/A', ''])
assert _NA_VALUES == parsers._NA_VALUES
assert _NA_VALUES == common._NA_VALUES
nv = len(_NA_VALUES)

def f(i, v):
Expand Down

0 comments on commit 7393db8

Please sign in to comment.