当前位置:网站首页>Openpyxl merge cells
Openpyxl merge cells
2022-07-29 01:28:00 【Struggling migrant workers】
List of articles
Code
import openpyxl
wb = openpyxl.load_workbook('/Users/test0712.xlsx')
ws = wb['Sheet1']
max_rows = ws.max_row # Get the largest row
max_columns = ws.max_column # Get the largest column
# openpyxl Subscript from 1 Start
ws.merge_cells(range_string='A1:B3') # merge cell A1:B3
wb.save('/Users/test0712.xlsx')
Before the merger

After the merger

边栏推荐
- Redis installation, cluster deployment and common tuning
- js判断 数组/对象数组 1 是否包含数组/对象数组 2
- Naver three party login
- C语言犄角旮旯的知识之形参、实参、main函数参数、数组或指针做函数参数等
- Intel introduces you to visual recognition -- openvino
- Docuware mobile labor solution can help you build a new productivity model: anytime, anywhere, any device
- Principle and usage setting of large page memory
- Error reporting: SQL syntax error in flask. Fields in SQL statements need quotation marks when formatting
- Oozie job scheduling
- Self-attention neural architecture search for semantic image segmentation
猜你喜欢

Canal real-time parsing MySQL binlog data practice

了解网址url的组成后 运用url模块、querystring模块和mime模块完善静态网站

数字孪生轨道交通:“智慧化”监控疏通城市运行痛点

【mysql】多指标历史累计去重问题

Digital twin rail transit: "intelligent" monitoring to clear the pain points of urban operation

Solid smart contract tutorial (5) -nft auction contract

Recommended Spanish translation of Beijing passport

梅克尔工作室——HarmonyOS实现列表待办

表达式求值

Intel introduces you to visual recognition -- openvino
随机推荐
Django uses the existing data table method of MySQL database
正则表达式
【mysql】字符串转int
量化交易之数字货币篇 - 生成foot print因子数据
Beginner's Guide to electronic bidding
Dart array, map, type judgment, conditional judgment operator, type conversion
【Leetcode-滑动窗口问题】
一文搞懂ES6基本全部语法
教你一文解决 js 数字精度丢失问题
Log4j dynamic loading configuration file
Flink SQL Hudi actual combat
Flink SQL Hudi 实战
Canal real-time parsing MySQL binlog data practice
Solid smart contract tutorial (5) -nft auction contract
Naver 三方登录
RHCE command practice (II)
Prometheus 的 API 稳定性保障
Docuware mobile labor solution can help you build a new productivity model: anytime, anywhere, any device
DVWA之SQL注入
瑞吉外卖项目实战Day01