Handling Multidimensional Pandas Dataframe #93
-
MPIRE Developers, Is MPIRE capable of working with a multidimensional Pandas dataframe for each process? If so, can you please provide an example of how to accomplish this? Thanks for all your help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Can you be a bit more specific to what you're trying to accomplish? Does each process need its own dataframe? Do multiple processes need to access the same dataframe? Are you only reading from it, or also writing? Please add as much info as possible so I can best answer your question. |
Beta Was this translation helpful? Give feedback.
-
MPIRE Developers, My teammate provided the additional details above. Please let us know if you need more details. Thanks for all your help! |
Beta Was this translation helpful? Give feedback.
-
By default MPIRE applies argument unpacking. I.e., it defaults to Luckily, you can easily avoid that. Please have a look at https://sybrenjansen.github.io/mpire/usage/map/map.html#circumvent-argument-unpacking, which should provide you with all the details you need. It basically comes down to changing this line slightly:
to:
And then it should work |
Beta Was this translation helpful? Give feedback.
By default MPIRE applies argument unpacking. I.e., it defaults to
starmap
. That is your problem here.Luckily, you can easily avoid that. Please have a look at https://sybrenjansen.github.io/mpire/usage/map/map.html#circumvent-argument-unpacking, which should provide you with all the details you need.
It basically comes down to changing this line slightly:
to:
And then it should work