File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,10 +14,15 @@ def getdata(filename):
1414ourdir = os .path .dirname (os .path .realpath (__file__ ))
1515answer = []
1616for file in os .listdir (ourdir ):
17+ if file .startswith ("all" ):
18+ continue
1719 if file .endswith (".table" ):
1820 fullpath = os .path .join (ourdir , file )
1921 answer .append ([file [:- 11 ]]+ getdata (fullpath ))
2022print ("#simdjson RapidJSON sajson" )
2123answer .sort ()
2224for l in answer :
2325 print ("\t " .join (map (str ,l )))
26+
27+
28+
Original file line number Diff line number Diff line change 11import os
22import csv
3- import pandas as pd
3+
4+ try : import pandas as pd
5+ except ImportError :
6+ import pip
7+ pip .main (['install' , '--user' , 'pandas' ])
8+ import pandas as pd
49
510def getdata (filename ):
611 df = pd .read_csv (filename , delim_whitespace = True )
@@ -9,10 +14,15 @@ def getdata(filename):
914ourdir = os .path .dirname (os .path .realpath (__file__ ))
1015answer = []
1116for file in os .listdir (ourdir ):
17+ if file .startswith ("all" ):
18+ continue
1219 if file .endswith (".table" ):
1320 fullpath = os .path .join (ourdir , file )
1421 answer .append ([file [:- 11 ]]+ getdata (fullpath ))
1522print ("#simdjson RapidJSON sajson" )
1623answer .sort ()
1724for l in answer :
1825 print ("\t " .join (map (str ,l )))
26+
27+
28+
You can’t perform that action at this time.
0 commit comments