# vtkCollection... am I using it well?

**URL:** https://discourse.vtk.org/t/vtkcollection-am-i-using-it-well/4732
**Category:** Support
**Created:** [November 25, 2020, 2:11pm UTC](https://discourse.vtk.org/t/vtkcollection-am-i-using-it-well/4732 "2020-11-25T14:11:47Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![bistek](https://discourse.vtk.org/user_avatar/discourse.vtk.org/bistek/32/2344_2.png) [@bistek](https://discourse.vtk.org/u/bistek)
#### Post date: [November 27, 2020, 5:28pm UTC](https://discourse.vtk.org/t/vtkcollection-am-i-using-it-well/4732/6 "2020-11-27T17:28:00Z")

</div>

Perfect!

Still one more question: in another [issue](https://discourse.vtk.org/t/set-get-fielddata-with-numpy-interface-dataset-adapter/4550/5) you suggested to try using **xarray** for metadata etc…

Now suppose I’d like to store my (several) vtk objects in a data structure together with their metadata, and to be able to search, select, etc., the vtk objects based on the metadata.

By using xarray I could store the vtk object (actually the pointer to the vtk object) in a “column” (or dimension in xarray terms) and the metadata in other columns. Do you see any problem with this data structure?

To further explore this idea, probably the same can be done also with Pandas. Which one would be better in your opinion, Pandas or xarray?

Many thanks!

---

_[View the full topic](https://discourse.vtk.org/t/vtkcollection-am-i-using-it-well/4732)._
