Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Strategy for data extraction
Post: RE: Strategy for data extraction

(Feb-22-2024, 10:52 PM)standenman Wrote: I am trying to come up with a strategy for extracting key data from generic letters for different clients. This is the format of the letter I want to parse....
carecavoador Data Science 1 526 Mar-11-2024, 01:44 PM
    Thread: problem with spliting line in print
Post: RE: problem with spliting line in print

Why are you breaking lines like this? You have a problem in line 19, you have to close the parentesis on the id(shallow_copy[0])} function: You don't need slashes when breaking f-strings, but you mu...
carecavoador General Coding Help 3 405 Jan-23-2024, 02:47 PM
    Thread: Convert word into pdf and copy table to outlook body in a prescribed format
Post: RE: Convert word into pdf and copy table to outloo...

What have you coded so far? Show us your progress and maybe we cal help.
carecavoador General Coding Help 1 761 Sep-22-2023, 02:33 PM
    Thread: image conversion
Post: RE: image conversion

(Sep-19-2023, 12:09 AM)Skaperen Wrote: is there a help site/forum for pillow? i've run into ambiguities in the documentation, already. The documentation is really the best place to look for. What a...
carecavoador GUI 7 1,565 Sep-19-2023, 10:29 AM
    Thread: Trying to get counts/sum/percentages from pandas similar to pivot table
Post: RE: Trying to get counts/sum/percentages from pand...

import json dic_exm = { "name" : "Simplilearn", "roll_no" : 1, "cgpa" : 9.68, "phone_num" : "1231252123" } with open("example.json", "w") as outfile: data = [] data.append(di...
carecavoador General Coding Help 6 1,426 Sep-15-2023, 07:52 PM
    Thread: Pytest Installed, but VS Code Won’t Access Pytest
Post: RE: Pytest Installed, but VS Code Won’t Access Pyt...

Would you mind sharing all the code? The error you are describing is relative to when you import something but don't use it at all in your code.
carecavoador General Coding Help 9 3,349 Sep-12-2023, 07:40 PM
    Thread: [PySide / PyQt] Offset two images with keyboard increments
Post: [PySide / PyQt] Offset two images with keyboard in...

Hello fellow Pythonistas. I'm working on a little side project. The goai is: I need to load two images, then invert the pixels of the second image and change it's opacity to 50%. Finally I blend the ...
carecavoador GUI 1 1,009 Sep-08-2023, 06:01 PM
    Thread: python Read each xlsx file and write it into csv with pipe delimiter
Post: RE: python Read each xlsx file and write it into c...

This is the way... And to use the pipe | as the separator just pass '|' as the sep argument to df.to_csv(): df.to_csv(savepathXL+savenameCSV, index=False, sep='|')
carecavoador General Coding Help 4 1,475 Aug-30-2023, 10:31 AM
    Thread: Hard time trying to figure out the difference between two strings
Post: RE: Hard time trying to figure out the difference ...

(Aug-16-2023, 03:00 PM)deanhystad Wrote: This will not work if you can have color names like "Dark Blue"This is precisely the my main concern as custom colors are common here. But, your insight gav...
carecavoador General Coding Help 2 685 Aug-16-2023, 04:53 PM
    Thread: Hard time trying to figure out the difference between two strings
Post: Hard time trying to figure out the difference betw...

Greetings, fellow pythonistas. Considering I have the following filenames: filenames = [ "BCY0649_PURANATTA_120X90MM__ Cyan.tif" "BCY0649_PURANATTA_120X90MM__ Black.tif" "BCY0649_PURANATT...
carecavoador General Coding Help 2 685 Aug-16-2023, 02:24 PM
    Thread: Python Class help
Post: RE: Python Class help

Are you running this Python script inside Blender? Would you mind sharing which tutorial is this?
carecavoador General Coding Help 3 777 Aug-08-2023, 02:20 PM
    Thread: Equivalent Python code from VBA
Post: RE: Equivalent Python code from VBA

I guess you could do something like this: import subprocess strSGProgram = r'"C:\Program Files (x86)\SPACE GASS 14\sgwin.exe"' strSGScript = r' -s "c:\temp\SGScriptDemo\Save and close script.txt"' ...
carecavoador General Coding Help 2 797 Jul-05-2023, 10:43 AM
    Thread: [PySide6] Alarms App
Post: [PySide6] Alarms App

Hello everyone. Here is my alarms app. I did it for fun, because programming is a hobby for me, and because my girlfriend asked for something to help her remember taking medicine. Any feedback will ...
carecavoador Code Review 2 1,191 Jun-20-2023, 02:05 PM
    Thread: Dinamically adding widgets to layout [PySide6]
Post: RE: Dinamically adding widgets to layout [PySide6]

Wonderful! That was precisely the solution to the problem. Thank you very much! **biggrin**
carecavoador GUI 2 1,477 Jun-19-2023, 12:57 PM
  Bug Thread: Dinamically adding widgets to layout [PySide6]
Post: Dinamically adding widgets to layout [PySide6]

Hello! I'm following this thread on SO to dinamically create widgets. I managed to translate this example to PySide6 and it works. But, for some (probably dumb) reason, it's not working on my code. ...
carecavoador GUI 2 1,477 Jun-19-2023, 11:56 AM
    Thread: I hate "List index out of range"
Post: RE: I hate "List index out of range"

Also, you could use for loops to never run out of range: fruit_list = ["banana", "apple", "coconut", "pineapple"] for fruit in fruit_list: print(fruit) # Also use enumerate() to work with index...
carecavoador General Coding Help 20 3,351 May-11-2023, 06:43 PM
    Thread: python pypdf function to add bookmarks
Post: RE: python pypdf function to add bookmarks

(Jan-21-2023, 04:53 PM)standenman Wrote: I have the following code to recast a set of medical records so that the new PDF has bookmarks that reflect the date of medical treatment. The code creates a...
carecavoador Data Science 2 1,975 Jan-22-2023, 09:21 PM
    Thread: Looping over radio buttons
Post: RE: Looping over radio buttons

You could try something like buttons = [] for graph in graph_types: buttons.append(customtkinter.CTkRadioButton(self, text=graph[0], value=graph[1], variable=self.radio_button_var)) for index...
carecavoador General Coding Help 8 2,305 Jan-06-2023, 02:43 PM
    Thread: Create Excel Line Chart Programmatically
Post: RE: Create Excel Line Chart Programmatically

Literally the first link that appears on search for me: Example of creating an Excel line charts.
carecavoador General Coding Help 3 1,200 Dec-30-2022, 07:18 PM
    Thread: pdf to mp3
Post: RE: pdf to mp3

Ok. So, this is not an issue with your program. This is the result of the text formatting on your PDF. PDF files are kinda weird when it comes to text and these funky results are very common when ext...
carecavoador General Coding Help 4 1,521 Dec-30-2022, 06:06 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020