Skip to content

Commit

Permalink
deprecated pd.np
Browse files Browse the repository at this point in the history
  • Loading branch information
Hobson Lane committed Jun 26, 2020
1 parent ceeb146 commit 290e576
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pugnlp/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from collections import Mapping, OrderedDict

import pandas as pd
import numpy as np

from decimal import Decimal

Expand Down Expand Up @@ -84,8 +85,6 @@
}


np = pd.np

tld_iana = pd.read_csv(os.path.join(DATA_PATH, 'tlds-from-iana.csv'), encoding='utf8')
tld_iana = OrderedDict(sorted(zip((tld.strip().lstrip('.') for tld in tld_iana.domain),
[(sponsor.strip(), -1) for sponsor in tld_iana.sponsor]),
Expand Down Expand Up @@ -164,8 +163,8 @@
MAX_DATETIME = MAX_TIMESTAMP.to_pydatetime()
MIN_DATETIME64 = MIN_TIMESTAMP.to_datetime64()
MAX_DATETIME64 = MAX_TIMESTAMP.to_datetime64()
INF = pd.np.inf
NAN = pd.np.nan
INF = np.inf
NAN = np.nan
NAT = pd.NaT


Expand Down

0 comments on commit 290e576

Please sign in to comment.