Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

excel

Get Excel-Style Column Names from Column Number

August 12, 2022 by Magenaut

This is the code for providing the COLUMN name when the row and col ID is provided but when I give values like row = 1 and col = 104, it should return CZ, but it returns [email protected]

Categories Python, Q&A Tags excel, python, python-2.7 Leave a comment

Merge rows based on value (pandas to excel – xlsxwriter)

August 12, 2022 by Magenaut

I’m trying to output a Pandas dataframe into an excel file using xlsxwriter. However I’m trying to apply some rule-based formatting; specifically trying to merge cells that have the same value, but having trouble coming up with how to write the loop. (New to Python here!)

Categories Python, Q&A Tags excel, pandas, python, xlsxwriter Leave a comment

Convert date from excel in number format to date format python

August 12, 2022 by Magenaut

I am reading data from excel and manipulating the data using python. But dates are coming as integers. How can I convert the dates back to date format? 5/15/2015 is coming as 42139.00 Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the … Read more

Categories Python, Q&A Tags datetime, excel, python, xlrd Leave a comment

How can I see the formulas of an excel spreadsheet in pandas / python?

August 12, 2022 by Magenaut

I would like to read in an excel spreadsheet to python / pandas, but have the formulae instead of the cell results.

Categories Python, Q&A Tags excel, pandas, python, python-3.x, xlsx Leave a comment

How to obtain sheet names from XLS files without loading the whole file?

August 12, 2022 by Magenaut

I’m currently using pandas to read an Excel file and present its sheet names to the user, so he can select which sheet he would like to use. The problem is that the files are really big (70 columns x 65k rows), taking up to 14s to load on a notebook (the same data in a CSV file is taking 3s).

Categories Python, Q&A Tags excel, pandas, python, xlrd Leave a comment

Print chosen worksheets in excel files to pdf in python

August 11, 2022 by Magenaut

I need to write a python script to read excel files, find each worksheet and then print these to pdf with the standard formating defined in the excel.

Categories Python, Q&A Tags excel, export, pdf, printing, python Leave a comment

Edit existing excel workbooks and sheets with xlrd and xlwt

August 11, 2022 by Magenaut

In the documentation for xlrd and xlwt I have learned the following:

Categories Python, Q&A Tags excel, python, xlrd, xlwt Leave a comment

Python: Open Excel Workbook using Win32 COM Api

August 11, 2022 by Magenaut

I’m using the following code to open and display a workbook within Excel:

Categories Python, Q&A Tags com-interface, excel, python, winapi Leave a comment

Use Python to Inject Macros into Spreadsheets

August 11, 2022 by Magenaut

I’ve got a macro that I’d like a bunch of existing spreadsheets to use. The only problem is that there are so many spreadsheets that it would be too time consuming to do it by hand!

Categories Python, Q&A Tags excel, python, vba, vbe Leave a comment
Newer posts
← Previous Page1 … Page8 Page9
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress