File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
- from distutils .version import LooseVersion
2
- from functools import reduce
1
+ from packaging import version
3
2
from io import StringIO
4
3
from urllib .error import HTTPError
5
4
8
7
from pandas .io import common as com
9
8
from pandas .testing import assert_frame_equal
10
9
11
- PANDAS_VERSION = LooseVersion (pd .__version__ )
10
+ PANDAS_VERSION = version . parse (pd .__version__ )
12
11
13
- PANDAS_0210 = PANDAS_VERSION >= LooseVersion ("0.21.0" )
14
- PANDAS_0220 = PANDAS_VERSION >= LooseVersion ("0.22.0" )
15
- PANDAS_0230 = PANDAS_VERSION >= LooseVersion ("0.23.0" )
12
+ PANDAS_0210 = PANDAS_VERSION >= version . parse ("0.21.0" )
13
+ PANDAS_0220 = PANDAS_VERSION >= version . parse ("0.22.0" )
14
+ PANDAS_0230 = PANDAS_VERSION >= version . parse ("0.23.0" )
16
15
17
16
__all__ = [
18
17
"HTTPError" ,
You can’t perform that action at this time.
0 commit comments