openPMD / openPMD-api

:floppy_disk: C++ & Python API for Scientific I/O
https://openpmd-api.readthedocs.io
GNU Lesser General Public License v3.0
134 stars 51 forks source link

Pandas DataFrames: Add Row Column Name #1501

Closed ax3l closed 11 months ago

ax3l commented 11 months ago

By default, the row index (!= particle index) in a pandas dataframe has no name. This can be a bit cumbersome for exports, e.g., to CSV (#1444) - where this header field would just be empty. (First seen and reported by @cemitch99.)

This PR names the index now "row", because it is not a (macro) particle id property.

Close #1480

Additional info: