Skip to content

Commit ffa3584

Browse files
committed
string_types not a valid object
1 parent 40fa604 commit ffa3584

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas_datareader/econdb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import requests
22
import pandas as pd
3-
import pandas.compat as compat
43

54
from pandas_datareader.base import _BaseReader
65

@@ -15,7 +14,7 @@ class EcondbReader(_BaseReader):
1514
@property
1615
def url(self):
1716
"""API URL"""
18-
if not isinstance(self.symbols, compat.string_types):
17+
if not isinstance(self.symbols, str):
1918
raise ValueError('data name must be string')
2019

2120
return ('{0}?{1}&format=json&page_size=500&expand=both'

0 commit comments

Comments
 (0)