xlwings

Creating and then modifying pdf file in python

Creating and then modifying pdf file in python Question: I am writing some code that merges some pdfs from their file paths and then writes some text on each page of the merged document. My problem is this: I can do both things separately – merge pdfs and write text to a pdf – I …

Total answers: 1

How to read exact numbers as displayed in excel using Pandas.read_excel or xlwrings

How to read exact numbers as displayed in excel using Pandas.read_excel or xlwrings Question: I am new in Python programming, and I am having an issue regarding to Pandas. I’ve searched for similar questions using different keywords but unfortunately didn’t find the right answer. What I intended to achieve is simply read data from excel …

Total answers: 1

Concat excel cols and combine rows into one using python pandas

Concat excel cols and combine rows into one using python pandas Question: I have a data in excel sheet like as below Name Segment revenue Product_id Status Order_count days_ago Dummy High value 1000 P_ABC Yes 2 30 days ago Dummy High value 1000 P_CDE No 1 20 days ago Dummy High value 1000 P_EFG Yes …

Total answers: 1

Can't import UDF from python to Excel using xlwings

Can't import UDF from python to Excel using xlwings Question: I am using python to write a function and then using xlwings I am trying to import it into Excel but I faced the following error: My xlwings version is 0.28.5, and python’s is 3.10, and I am using Excel 2013. also both xlwings32-0.28.5.dll and …

Total answers: 1

Insert data range into multi dimensionnal array

Insert data range into multi dimensionnal array Question: I am trying to get data from an excel file using xlwings (am new to python) and load it into a multi dimensionnal array (or rather, table) that I could then loop through later on row by row. What I would like to do : db = …

Total answers: 2

xlwings find specific char text start and end position and format it

xlwings find specific char text start and end position and format it Question: I have multiple excel files with 12 sheets in each file. So, in each sheet, I have a fixed text like below – "Project has been blocked" So, I would like to do the below a) Find the text "Project has been …

Total answers: 1

Xlwings write text in-between and at the end of a cell

Xlwings write text in-between and at the end of a cell Question: I have a data like as below. ABC 1 300 500 "He is a good student and has scored lot of marks in 2nd term during He also focuses on extracurricular activities" DEF 2 400 600 "He is a good student and has …

Total answers: 1

xlwings – efficient way to find and replace

xlwings – efficient way to find and replace Question: I am trying to do the below in excel using xlwings a) Read the input file (which has 15 sheets) Old_file.xlsx b) Find and Replace the keyword Old Name with New Name (from the python list) c) I have a python list of new names. So, …

Total answers: 1

How to Merge all worksheets within the same excel workbook using Xlwings & Python

How to Merge all worksheets within the same excel workbook using Xlwings & Python Question: I’m trying to Merge all Worksheets within the same Excel Workbook using Xlwings if anyone could please advise on how this could be done? The code below is able to grab all worksheets and combine them into a created output …

Total answers: 2