Posts by matheus macedo • 1 point
2 posts
-
-1
votes2
answers41
viewsQ: How to map values with Dataframe pandas
I am trying to create a new data column in pandas format based on two other dataframes. This first dataset is where I get the values: GenPart_pdgID = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 0 -4 4 23 23 23…
-
0
votes1
answer167
viewsQ: How to transform an array of arrays into a nested array in python
I’m looking to transfer an array of arrays in a nested numpy matrix, i.e.: array[array[1,2],array[1,2,3],array[8]] in array[ [1,2,nan], [1,2,2], [8,nan,nan] ]. That’s right when I convert to pandas…