[Pandas-dev] Reading file with time dependent format

MATIAS ANDRES LERDON matias.lerdon at sansano.usm.cl
Thu Jun 16 16:48:51 EDT 2022


Dear users,
I"m working with LAMMPS, an application to simulate particles and the
outputs comes in this format
-----------------------
HEADERS
timestep1(It"s a number)   N°atoms ...
Bin Value
1  24
2  54
3  63
...
99 32
timestep2                         N°atoms ...
Bin Value
1 64
2 75
3 65
...
99 65
timestep3 ....
and goes on
----------------------------
So I would like to know if there is a way to create an array with 3 dimensions
Array = [Atom,Value,Timestep]
with just a few lines reading the output file.
Thanks !


More information about the Pandas-dev mailing list