Working with Excel Files in Python

Working with Excel Files in Python

from: http://www.python-excel.org/

This site contains pointers to the best information available about working with Excel files in the Python programming language.

The Packages

There are python packages available to work with Excel files that will run on any Python platform and that do not require either Windows or Excel to be used. They are fast, reliable and open source:

openpyxl

The recommended package for reading and writing Excel 2010 files (ie: .xlsx)

Download | Documentation | Bitbucket

xlsxwriter

An alternative package for writing data, formatting information and, in particular, charts in the Excel 2010 format (ie: .xlsx)

Download | Documentation | GitHub

xlrd

This package is for reading data and formatting information from older Excel files (ie: .xls)

Download | Documentation | GitHub

xlwt

This package is for writing data and formatting information to older Excel files (ie: .xls)

Download | Documentation | Examples | GitHub

xlutils

This package collects utilities that require both xlrd and xlwt, including the ability to copy and modify or filter existing excel files.

NB: In general, these use cases are now covered by openpyxl!

Download | Documentation | GitHub

原文地址:https://www.cnblogs.com/jddreams/p/10011247.html

时间: 2024-11-09 06:20:19

Working with Excel Files in Python的相关文章

Creating Excel files with Python and XlsxWriter——Introduction

XlsxWriter 是用来写Excel2007版本以上的xlsx文件的Python模块. XlsxWriter 在供选择的可以写Excel的Python模块中有自己的优缺点. #--------------------------------------------------------------------------------------- 优点: 1. 它支持相比其他模块而言更多的Excel 特征: 2. 它生成的Excel文件有很高的保真度,大多数情况下生成的文件和Excel生成

Huge CSV and XML Files in Python, Error: field larger than field limit (131072)

Huge CSV and XML Files in Python January 22, 2009. Filed under python twitter facebook pinterest linkedin google+ I, like most people, never realized I'd be dealing with large files. Oh, I knew there would be some files with megabytes of data, but I

VBA bat create excel files

the database is current excel when you click "create" button, then create excel by customer code . in the data source have a lot of data,contains customer code and the detail info . one customer code point many detail info each a customer code c

像Excel一样使用python进行数据分析(3)

7,数据汇总 第七部分是对数据进行分类汇总,Excel中使用分类汇总和数据透视可以按特定维度对数据进行汇总,python中使用的主要函数是groupby和pivot_table.下面分别介绍这两个函数的使用方法. 分类汇总 Excel的数据目录下提供了"分类汇总"功能,可以按指定的字段和汇总方式对数据表进行汇总.Python中通过Groupby函数完成相应的操作,并可以支持多级分类汇总. Groupby是进行分类汇总的函数,使用方法很简单,制定要分组的列名称就可以,也可以同时制定多个列

【bugRecord4】Fatal error in launcher: Unable to create process using '""D:\Program Files\Python36\python.exe"" "D:\Program Files\Python36\Scripts\pip.exe" '

环境信息: python版本:V3.6.4 安装路径:D:\Program Files\python36 环境变量PATH:D:\Program Files\Python36;D:\Program Files\Python36\Scripts; 问题描述:命令行执行pip报错 解决方法: 1.切换到D:\Program Files\Python36\Scripts 2.执行python pip.exe install SomePackage进行安装 3.安装成功后执行pip仍报错 4.查看安装成

像Excel一样使用python进行数据分析

Excel是数据分析中最常用的工具,本篇文章通过python与excel的功能对比介绍如何使用python通过函数式编程完成excel中的数据处理及分析工作.在Python中pandas库用于数据处理 ,我们从1787页的pandas官网文档中总结出最常用的36个函数,通过这些函数介绍如何通过python完成数据生成和导入,数据清洗,预处理,以及最常见的数据分类,数据筛选,分类 汇总,透视等最常见的操作. 文章内容共分为9个部分.这是第一篇,介绍前3部分内容,数据表生成,数据表查看,和数据清洗.

“Unicode Error ”unicodeescape" codec can't decode bytes… Cannot open text files in Python 3

“Unicode Error ”unicodeescape" codec can't decode bytes… Cannot open text files in Python 3 问题于字符串 "C:\Users\Eric\Desktop\beeline.txt" 在这里,\U启动一个八字符的Unicode转义,例如'\ U00014321`.在你的代码中,转义后面跟着字符's',这是无效的. 需要复制所有反斜杠,或者在字符串前加上r(以生成原始字符串). python

xlwings: Write Excel macro using python instead of VBA

i want to write Excel macros to deal with the data, but i am not familiar with VBA language. so i decide to use python instead of VBA. at the beginning, i find xlrd,xlwt for python Excel operations, but that doesn't support Excel macro. Finally i fin

Read Large Files in Python

I have a large file ( ~4G) to process in Python. I wonder whether it is OK to "read" such a large file. So I tried in the following several ways: The original large file to deal with is not "./CentOS-6.5-i386.iso", I just take this fil