Skip to content

Commit dc8ca62

Browse files
author
Camilo Cota
committed
fix test_empty_decimal_marker comment
1 parent 49613fe commit dc8ca62

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

asv_bench/benchmarks/parser_vb.py

+17-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def setup(self):
2929
def time_read_csv_default_converter(self):
3030
read_csv(StringIO(self.data), sep=',', header=None, float_precision=None)
3131

32-
3332
class read_csv_precise_converter(object):
3433
goal_time = 0.2
3534

@@ -109,4 +108,20 @@ def setup(self):
109108
self.data = (self.data * 200)
110109

111110
def time_read_table_multiple_date_baseline(self):
112-
read_table(StringIO(self.data), sep=',', header=None, parse_dates=[1])
111+
read_table(StringIO(self.data), sep=',', header=None, parse_dates=[1])
112+
113+
114+
class read_csv_python_engine(object):
115+
goal_time = 0.2
116+
117+
def setup(self):
118+
self.data_decimal = '0,1213700904466425978256438611;0,0525708283766902484401839501;0,4174092731488769913994474336\n 0,4096341697147408700274695547;0,1587830198973579909349496119;0,1292545832485494372576795285\n 0,8323255650024565799327547210;0,9694902427379478160318626578;0,6295047811546814475747169126\n 0,4679375305798131323697930383;0,2963942381834381301075609371;0,5268936082160610157032465394\n 0,6685382761849776311890991564;0,6721207066140679753374342908;0,6519975277021627935170045020\n '
119+
self.data_decimal = (self.data_decimal * 200)
120+
self.data = '0.1213700904466425978256438611,0.0525708283766902484401839501,0.4174092731488769913994474336\n 0.4096341697147408700274695547,0.1587830198973579909349496119,0.1292545832485494372576795285\n 0.8323255650024565799327547210,0.9694902427379478160318626578,0.6295047811546814475747169126\n 0.4679375305798131323697930383,0.2963942381834381301075609371,0.5268936082160610157032465394\n 0.6685382761849776311890991564,0.6721207066140679753374342908,0.6519975277021627935170045020\n '
121+
self.data = (self.data * 200)
122+
123+
def time_read_csv_default_converter_with_decimal(self):
124+
read_csv(StringIO(self.data_decimal), sep=';', header=None, float_precision=None, decimal=',', engine='python')
125+
126+
def time_read_csv_default_converter(self):
127+
read_csv(StringIO(self.data), sep=',', header=None, float_precision=None, engine='python')

0 commit comments

Comments
 (0)