You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
U1000 is super wasteful. Either calculate the longest string for each col in a primary pass or use a python string object type, which is kind of like a pointer and not great for cache locality. But memory efficient and safe.
Investigate if the python string type would still let us preallocate arrays (I think it should).
Also try the S type instead of U for Unicode since we internally use ASCII only. Maybe you can skip the de/encoding of an OpenMS String or std::string.
hii @jpfeuffer , I’d like to take this issue if it’s still open. I’ll look into improving the dataframe export column dtypes (replacing U1000, testing S / string types) and check for similar cases elsewhere.
Hi, I am a GSoC 2026 aspirant and would like to work on this issue.
Could you please guide me if this issue is still available and if there are any specific implementation expectations?
Yes sure. You have to investigate first in the new nanobind bindings, if this is still a problem, and if so, check the last PR what was discussed since the last PR was 99% done.
Thanks for the pointers! @timosachsenberg , @jpfeuffer
I reviewed PR #8606 and tested the current DataFrame export behavior using the latest develop branch. From my checks, the exported columns now appear to use Python object dtype instead of the previous fixed-width Unicode types (U100/U1000).
So it seems the issue may already be resolved with the nanobind-based implementation. I’ll continue checking a few additional cases to make sure there are no remaining edge cases
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
jpfeuffer commentedon Jan 2, 2026
Check if there are other dataframe exports that have this problem.
jpfeuffer commentedon Jan 2, 2026
Also try the S type instead of U for Unicode since we internally use ASCII only. Maybe you can skip the de/encoding of an OpenMS String or std::string.
khushiiagrawal commentedon Jan 4, 2026
hii @jpfeuffer , I’d like to take this issue if it’s still open. I’ll look into improving the dataframe export column dtypes (replacing U1000, testing S / string types) and check for similar cases elsewhere.
Thanks!
jpfeuffer commentedon Jan 4, 2026
Sure!
fix: replace U100/U1000 dtypes with object in DataFrame exports
PrakharLal commentedon Mar 13, 2026
Hi, I am a GSoC 2026 aspirant and would like to work on this issue.
Could you please guide me if this issue is still available and if there are any specific implementation expectations?
jpfeuffer commentedon Mar 13, 2026
Yes sure. You have to investigate first in the new nanobind bindings, if this is still a problem, and if so, check the last PR what was discussed since the last PR was 99% done.
@timosachsenberg any comments?
timosachsenberg commentedon Mar 13, 2026
It might be resolved w so please double check
PrakharLal commentedon Mar 14, 2026
Thanks for the pointers!
@timosachsenberg , @jpfeuffer
I reviewed PR #8606 and tested the current DataFrame export behavior using the latest develop branch. From my checks, the exported columns now appear to use Python object dtype instead of the previous fixed-width Unicode types (U100/U1000).
So it seems the issue may already be resolved with the nanobind-based implementation. I’ll continue checking a few additional cases to make sure there are no remaining edge cases
github-actions commentedon Sep 11, 2026
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
pyOpenMS: keep string typing of DataFrame exports with object columns
pyOpenMS: null instead of placeholder strings in FeatureMap.to_df, fl…
Fix string column truncation in DataFrame exports (OpenMS#8583) (Open…