File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 14
14
from pandas .util .testing import ensure_clean
15
15
16
16
from pandas .io .excel import ExcelFile , read_excel
17
+ from pandas .io .parsers import read_csv
17
18
18
19
_seriesd = tm .getSeriesData ()
19
20
_tsd = tm .getTimeSeriesData ()
@@ -49,6 +50,25 @@ def setup_method(self, datapath):
49
50
self .tsframe = _tsframe .copy ()
50
51
self .mixed_frame = _mixed_frame .copy ()
51
52
53
+ def get_csv_refdf (self , basename ):
54
+ """
55
+ Obtain the reference data from read_csv with the Python engine.
56
+
57
+ Parameters
58
+ ----------
59
+
60
+ basename : str
61
+ File base name, excluding file extension.
62
+
63
+ Returns
64
+ -------
65
+
66
+ dfref : DataFrame
67
+ """
68
+ pref = os .path .join (self .dirpath , basename + '.csv' )
69
+ dfref = read_csv (pref , index_col = 0 , parse_dates = True , engine = 'python' )
70
+ return dfref
71
+
52
72
def get_excelfile (self , basename , ext ):
53
73
"""
54
74
Return test data ExcelFile instance.
You can’t perform that action at this time.
0 commit comments