Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
import _NA_VALUES from common instead of parsers, make import explicit
  • Loading branch information
OlegShteynbuk committed Jun 13, 2017
commit 5fa829eb3e4eeaa76909e936038e8bdf9f7cd79c
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