1import sys
2if sys.version_info[0] < 3:
3 from StringIO import StringIO
4else:
5 from io import StringIO
6
7import pandas as pd
8
9TESTDATA = StringIO("""col1;col2;col3
10 1;4.4;99
11 2;4.5;200
12 3;4.7;65
13 4;3.2;140
14 """)
15
16df = pd.read_csv(TESTDATA, sep=";")
17