def read_data(filename):
    savetype = os.path.splitext(filename)[1][1:]
    if ((savetype == u'xlsx') or (savetype == u'xls')):
        data = pd.read_excel(filename)
    elif (savetype == u'csv'):
        data = pd.read_csv(filename)
    else:
        print('con not read file!')
    return data
def read_data(filename):
    savetype = os.path.splitext(filename)[1][1:]
    if ((savetype == u'xlsx') or (savetype == u'xls')):
        data = pd.read_excel(filename)
    elif (savetype == u'csv'):
        data = pd.read_csv(filename)
    else:
        print('con not read file!')
    return data