File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 6
6
from pandas .tseries .offsets import DateOffset
7
7
from pandas .util .decorators import cache_readonly
8
8
import pandas .tseries .offsets as offsets
9
+ import pandas .core .common as com
9
10
import pandas .lib as lib
10
11
11
12
class FreqGroup (object ):
@@ -45,8 +46,8 @@ def get_freq_code(freqstr):
45
46
freqstr = (get_offset_name (freqstr ), freqstr .n )
46
47
47
48
if isinstance (freqstr , tuple ):
48
- if (isinstance (freqstr [0 ], ( int , long ) ) and
49
- isinstance (freqstr [1 ], ( int , long ))):
49
+ if (com . is_integer (freqstr [0 ]) and
50
+ com . is_integer (freqstr [1 ]))
50
51
#e.g., freqstr = (2000, 1)
51
52
return freqstr
52
53
else :
@@ -59,7 +60,7 @@ def get_freq_code(freqstr):
59
60
stride = freqstr [0 ]
60
61
return code , stride
61
62
62
- if isinstance (freqstr , ( int , long ) ):
63
+ if com . is_integer (freqstr ):
63
64
return (freqstr , 1 )
64
65
65
66
base , stride = _base_and_stride (freqstr )
You can’t perform that action at this time.
0 commit comments