python excel 处理
来源:互联网 发布:java oa系统 源码下载 编辑:程序博客网 时间:2024/05/16 01:38
class Excel():
def __init__(self):
pass
def get_index(self):
datas = pd.read_excel('satisfaction.xlsx',sheetname='Sheet1')
all_rigion = list(datas.ix[:,1])
series_list = []
rigion = ['Northeast Europe','Western Europe','Middle East']
NE_index,WE_index,ME_index, = [],[],[]
row_index = [NE_index,WE_index,WE_index]
for index, item in enumerate(all_rigion):
for i in range(len(row_index)):
if item == rigion[i]:
row_index[i].append(index)
for j in range(len(row_index)):
for k in row_index[j]:
series_list.append(datas.ix[k,:])
result = pd.DataFrame(series_list)
result.to_excel(rigion[j]+'.xlsx',index=False)
t = Excel()
t.get_index()
0 0
- 【Python】Python处理Excel
- python处理excel表格
- python 处理excel
- Python处理Excel数据
- Python处理Excel数据
- python 处理中文Excel
- Python处理Excel文件
- python 处理excel
- python处理excel表格
- python处理excel
- Python 处理excel文件
- Python处理excel表格
- python处理excel
- python 处理 excel格式文件
- python处理excel
- Python处理excel数据
- Python之excel处理
- python处理excel
- Android studio项目目录详解
- python sort、sorted高级排序技巧
- android API——LocationManager获取位置信息
- 算法课第八周作业 | Unique Paths
- 打破无人驾驶的天花板
- python excel 处理
- Leetcode 101
- JavaScript中与JSON有关的几个函数
- 使用alembic进行openstack数据库版本管理
- CentOS安装wine
- CSTC-MISC
- 通过tiny-spring学习Spring框架源码(一)
- 常用默认端口
- 第一篇