1. 程式人生 > >讀取excel內容轉為二維list

讀取excel內容轉為二維list

# -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import pandas as pd 
source_data=pd.read_csv("./crx-noless.xls",header=None)
lists=source_data.values.tolist()