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
  Transform 3 Columns into Single Column DaveG 9 3,453 Mar-19-2025, 03:46 AM
Last Post: robbert23
  Transform a pdf to markdown zzied 0 308 Feb-11-2025, 10:22 AM
Last Post: zzied
  [SOLVED] Looking for documentation on Reportlab's canvas.transform() function NeilUK 1 1,398 Aug-23-2023, 01:21 PM
Last Post: NeilUK
  Transform Dic to dataframe d9d9d 4 2,354 Apr-14-2022, 09:35 AM
Last Post: perfringo
  How to transform from wide to long format in python shantanu97 1 2,309 Nov-21-2021, 11:53 AM
Last Post: buran
  List structure lost when multiplying Protonn 2 3,006 Apr-23-2020, 04:16 AM
Last Post: buran
  Python script that recursively zips folders WITHOUT nesting the folder inside the zip umkc1 1 4,225 Feb-11-2020, 09:12 PM
Last Post: michael1789
  Most efficient way of reshaping a list-array structure midarq 2 2,735 Sep-25-2019, 09:32 AM
Last Post: midarq
  Transform simplified dictionary to nested dictionaries bhojendra 1 2,953 Jul-02-2019, 02:05 PM
Last Post: ichabod801
  Copy List Structure leoahum 2 3,505 Mar-22-2019, 05:40 PM
Last Post: leoahum

Forum Jump:

User Panel Messages

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