Skip to content

Magenaut

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

excel

How to convert a python datetime.datetime to excel serial date number

August 17, 2022 by Magenaut

I need to convert dates into Excel serial numbers for a data munging script I am writing. By playing with dates in my OpenOffice Calc workbook, I was able to deduce that ‘1-Jan 1899 00:00:00’ maps to the number zero.

Categories Python, Q&A Tags data-munging, datetime, excel, python Leave a comment

Pandas: Looking up the list of sheets in an excel file

August 16, 2022 by Magenaut

The new version of Pandas uses the following interface to load Excel files:

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

Reading Excel File using Python, how do I get the values of a specific column with indicated column name?

August 16, 2022 by Magenaut

I’ve an Excel File:

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

Get formula from Excel cell with python xlrd

August 14, 2022 by Magenaut

I have to port an algorithm from an Excel sheet to python code but I have to reverse engineer the algorithm from the Excel file.

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

Error: Unsupported format, or corrupt file: Expected BOF record

August 14, 2022 by Magenaut

I am trying to open a xlsx file and just print the contents of it. I keep running into this error:

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

pandas xlsxwriter, format header

August 13, 2022 by Magenaut

I’m saving pandas DataFrame to_excel using xlsxwriter. I’ve managed to format all of my data (set column width, font size etc) except for changing header’s font and I can’t find the way to do it. Here’s my example:

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

How do I call an Excel macro from Python using xlwings?

August 13, 2022 by Magenaut

I’ve read the API docs for xlwings, and played around with Workbook and Sheet objects in the interpreter, but I can’t figure out how to call a macro from Python.

Categories Python, Q&A Tags excel, python, vba, xlwings Leave a comment

Insert row into Excel spreadsheet using openpyxl in Python

August 13, 2022 by Magenaut

I’m looking for the best approach for inserting a row into a spreadsheet using openpyxl.

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

How to open a password protected excel file using python?

August 13, 2022 by Magenaut

I looked at the previous threads regarding this topic, but they have not helped solve the problem.

Categories Python, Q&A Tags excel, file-io, passwords, protected, python Leave a comment

reading excel to a python data frame starting from row 5 and including headers

August 12, 2022 by Magenaut

how do I import excel data into a dataframe in python.

Categories Python, Q&A Tags excel, import, pandas, python Leave a comment
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 Next →
  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