Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Making a function more efficient
Post: RE: Making a function more efficient

All of the solutions are indeed very impressive! My raspberry pi 4 crunches it like it was nothing. I tried to adapt Gribouillis function to find the next possible, non swappable number after a given ...
CatorCanulis General Coding Help 9 1,750 Oct-04-2022, 06:43 PM
    Thread: Making a function more efficient
Post: Making a function more efficient

Hi everyone, I'm working on a function that avoids transposed numbers. Like if you have 12 you can't have 21 or if you have 126 you can't have 216 oder 621. What I got so far: #!/bin/env python3 i...
CatorCanulis General Coding Help 9 1,750 Oct-02-2022, 07:24 AM
    Thread: Round float according to uncertainty
Post: Round float according to uncertainty

Hello everyone, I'm familiar with the rounding function in python but at work I encountered a new situation. Say you have a measurement result like so: (3.406 Ā± 0,052) mg/L. There is a norm (DIN 13...
CatorCanulis Data Science 2 2,197 Jun-08-2021, 02:10 PM
    Thread: Compile list of dictianories out of another list of dictianories by certain keys
Post: RE: Compile list of dictianories out of another li...

Unbelievableā€¦ My original function cut down to two lines. I think perfringos solution is a little easier to read since the behavious of .items() is not as well understood by beginners like me. But thi...
CatorCanulis General Coding Help 10 4,033 Jun-06-2021, 09:31 PM
    Thread: Compile list of dictianories out of another list of dictianories by certain keys
Post: RE: Compile list of dictianories out of another li...

I have another question: How can I "use" the result, that filter_dicts yields? At the end I need a new list of dictianories like the ones printed. (Jun-05-2021, 06:28 PM)perfringo Wrote: Maybe I am...
CatorCanulis General Coding Help 10 4,033 Jun-06-2021, 01:39 PM
    Thread: Compile list of dictianories out of another list of dictianories by certain keys
Post: RE: Compile list of dictianories out of another li...

This seems to do the trick, thank you! Can you elaborate in what the * does in *filter_dicts please? (Jun-05-2021, 06:28 PM)perfringo Wrote: Maybe I am missing something but it seems that simple f...
CatorCanulis General Coding Help 10 4,033 Jun-06-2021, 11:09 AM
    Thread: Compile list of dictianories out of another list of dictianories by certain keys
Post: RE: Compile list of dictianories out of another li...

def selectFromDictianories( dictianories , compareKeys , compareValues , returnKeys , booleanPop = False , booleanVerbose = True ): dictianoriesToReturn = [] for intDic, currentDicti...
CatorCanulis General Coding Help 10 4,033 Jun-05-2021, 04:11 PM
    Thread: Compile list of dictianories out of another list of dictianories by certain keys
Post: Compile list of dictianories out of another list o...

Hi everyone, I need to compile a new list of new dictianories out of another list of dictianories. The new list should contain dictianories from the old one, reduced to pre determined keys if the mat...
CatorCanulis General Coding Help 10 4,033 Jun-05-2021, 02:45 PM
    Thread: Normalize table (remove redundancy)
Post: Normalize table (remove redundancy)

Hi everyone, I have a excel table like this: CODE | MATRIX | SAMPLING | FREQUENCY | PARAM XX123 | OG | spot | 14 | 99 XX123 | OG | spot | 14 | 50 XX12...
CatorCanulis Data Science 1 1,585 Dec-17-2020, 09:40 PM

User Panel Messages

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