Python Forum
Transform list or set regardless of nesting structure
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Transform list or set regardless of nesting structure
#1
Hi,

is there a convenience function that iterates over arbitrarily nested lists, i.e. lets one transform the 'nodes' without worrying about the nesting structure?.
Reply
#2
Can you show a code example of the input / output you're looking for? I doubt what you're looking for exists, but your question is too vague as-is to know for certain.
Reply
#3
It seems to me the same question as Finding value in nested dictionaries with lists. Can you look at that?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] Looking for documentation on Reportlab's canvas.transform() function NeilUK 1 554 Aug-23-2023, 01:21 PM
Last Post: NeilUK
  Transform Dic to dataframe d9d9d 4 1,344 Apr-14-2022, 09:35 AM
Last Post: perfringo
  Transform 3 Columns into Single Column DaveG 8 1,801 Apr-04-2022, 08:42 AM
Last Post: Pedroski55
  How to transform from wide to long format in python shantanu97 1 1,614 Nov-21-2021, 11:53 AM
Last Post: buran
  List structure lost when multiplying Protonn 2 2,202 Apr-23-2020, 04:16 AM
Last Post: buran
  Python script that recursively zips folders WITHOUT nesting the folder inside the zip umkc1 1 2,749 Feb-11-2020, 09:12 PM
Last Post: michael1789
  Most efficient way of reshaping a list-array structure midarq 2 2,032 Sep-25-2019, 09:32 AM
Last Post: midarq
  Transform simplified dictionary to nested dictionaries bhojendra 1 2,324 Jul-02-2019, 02:05 PM
Last Post: ichabod801
  Copy List Structure leoahum 2 2,867 Mar-22-2019, 05:40 PM
Last Post: leoahum
  Nesting loops more than 20 RtjShreyD 2 4,972 Oct-05-2018, 08:07 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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