Python Forum
How to manage multiple datasets in Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to manage multiple datasets in Python
#1
Hi guys,

I have a question regarding how to manage multiple datasets in Python in a smart way. Let's say I have 3 .h5 file containing data I want to plot. Each one of them contains several multi dimensional arrays (u(x,y), v(x,y), w(x,y) ecc). I want to read them in an easy and smart way so that I can easily access them and plot whatever I want.

If I would use Matlab to do this job I would store them in cells so that u{1}, u{2} ans u{3} will contain the 2-D array. Now, this way is very slow and especially when the datasets are very big the computational time rises very fast.

I am new at Python but I know its potential and I am trying to figure out which is the best way to do it (maybe using objects??).
All tips are very much appreciated.
Thanks
Reply
#2
Could you demonstrate what you're talking about with code? I don't understand what you're asking here, or why you wouldn't just use a list, or potentially a dictionary.
Reply
#3
Thank for answering! I went looking into python dictionaries and I actually solved the problem. Thanks a lot!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python convert multiple files to multiple lists MCL169 6 1,521 Nov-25-2023, 05:31 AM
Last Post: Iqratech
  Dogs Vs Cats Clean Datasets and Corruprtion hatflyer 4 528 Nov-13-2023, 08:08 PM
Last Post: hatflyer
  python manage variables across project level mg24 1 912 Nov-12-2022, 05:01 AM
Last Post: deanhystad
  How do you manage script? kucingkembar 14 2,708 Oct-15-2022, 06:32 PM
Last Post: Gribouillis
  Error doing CV for training and testing datasets Z47 2 986 Aug-17-2022, 08:41 PM
Last Post: Z47
  Python, how to manage multiple data in list or dictionary with calculations and FIFO Mikeardy 8 2,593 Dec-31-2021, 07:47 AM
Last Post: Mikeardy
  how to manage crypto trading flooding data from exchange servers Mikeardy 0 1,231 Dec-26-2021, 08:31 PM
Last Post: Mikeardy
  API Gateway to manage multiple API's get put data robsuttonjr 2 2,527 Mar-09-2021, 04:09 PM
Last Post: robsuttonjr
  Manage user names in TRAC susja 3 5,913 Dec-06-2020, 09:34 PM
Last Post: susja
  how to manage an input() rodrigoH 1 1,626 Mar-16-2020, 12:24 AM
Last Post: jefsummers

Forum Jump:

User Panel Messages

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