Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Help Grouping by Intervals on list
Post: Help Grouping by Intervals on list

I am looking for a way to group a list of numbers into group of intervals and a count. For example: List = [1, 2, 3, 3.5, 3.6, 4, 5, 6, 7, 8, 9, 10, 14] Interval = 2 To give the result of; NewList...
paul41 General Coding Help 1 2,071 Dec-03-2019, 07:02 PM
    Thread: Dictionary and tuples list comprehensions help
Post: Dictionary and tuples list comprehensions help

Hi I have a dictionary with keys and values and I am wanting to convert these into a list of tuples. Dictionary = {'(A,B):1,'(C,D)':2} Note that the keys are currently tuples. I basically want to a...
paul41 General Coding Help 2 2,357 Nov-29-2019, 04:17 PM
    Thread: more list help converting
Post: RE: more list help converting

Thank you!!! That makes so much sense - I now understand where I was going wrong. Much appreciated
paul41 General Coding Help 3 2,395 Nov-24-2019, 08:04 PM
    Thread: more list help converting
Post: more list help converting

I have another issue with converting a list into the formatting i need it and looking for advice. (possibly getting late in the evening and my brain has died :-( ) The current list format is as foll...
paul41 General Coding Help 3 2,395 Nov-24-2019, 07:06 PM
    Thread: List help to split into single entries
Post: RE: List help to split into single entries

Thank you that was exactly what I was looking for and gives me the results I require. In my data set I seem to have some whitespace in some of the items. Do you know how i can remove this within the...
paul41 General Coding Help 3 2,197 Nov-24-2019, 04:31 PM
    Thread: List help to split into single entries
Post: List help to split into single entries

I have a list which is in the following format: list = ['A -> B', 'C -> D', 'E -> F'] I am trying to find a way to produce a list of single entries in the following format: ['A','B','C','D...
paul41 General Coding Help 3 2,197 Nov-24-2019, 03:37 PM
    Thread: Grouping a list of various time into intervals
Post: Grouping a list of various time into intervals

Hi, I am looking to create a new function that will take in a list of different times and also another input which will split it into x second intervals. The function needs to split the times and gro...
paul41 General Coding Help 1 3,725 Nov-24-2019, 01:09 PM
    Thread: networkx to show traffic help to get started
Post: networkx to show traffic help to get started

I am going to be using both networkx and matplotlib to produce a graph. The graph data input is 'currently' in the format of a dictionary. The dictionary comes in the following format: Dict = {A &g...
paul41 Data Science 0 1,623 Nov-23-2019, 05:19 PM
    Thread: List Comprehension - Creating a list of the length of an item help
Post: List Comprehension - Creating a list of the length...

I am working within a file which is within a for loop. Within this for loop i am wanting to create a new list. I can do what i want using normal list way but was hoping to find out how to convert th...
paul41 General Coding Help 2 2,014 Nov-16-2019, 05:37 PM
    Thread: Looking for advice and Guidance on Exceptions used within Functions
Post: Looking for advice and Guidance on Exceptions used...

I understand the basics on Exception handling. However, I am simply looking for the correct way of using the Exception handling when it comes to also using functions. Say I have created a function n...
paul41 General Coding Help 1 2,106 Nov-13-2019, 11:01 PM

User Panel Messages

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