Python Forum
how to list/count the number of dictionaries
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to list/count the number of dictionaries
#1
Hi all

I'm using dictionaries to record physical quantities (tensors, vectors, scalars) from a (huge) Ascii file.
After reading, I've several dictionaries I would like to record (in a hdf5 file); obviously their number differs from a result file to another one

From a single dictionary, we can find a lot of materials saying how to list, count, get keys and values, but I haven't found so far a way to count and list the number of distionaries I have: how to proceed?

Thanks for your support

Paul
Reply
#2
please, show your code, i.e. how you create your dicts
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
Sorry I understand my mistake (I've been confused)

Basically I just need to create a list where all dictionaries are recorded and called afterward Sick
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to most effectively unpack list of name-value pair dictionaries in a dataframe? zlim 1 615 Nov-07-2023, 10:56 PM
Last Post: zlim
  How to count total number of sheets in an excel workbook using polars sayyedkamran 0 630 Oct-27-2023, 09:54 PM
Last Post: sayyedkamran
  List and Dictionaries with Pandas Balinor 3 2,911 Aug-20-2018, 10:47 PM
Last Post: ichabod801
  Finding date count from a list of date range in pandas trillerducas72 0 2,720 May-24-2018, 02:30 AM
Last Post: trillerducas72

Forum Jump:

User Panel Messages

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