see all data_vars #4991
-
the data_vars method provides a convenient ways to see the varaibles and the formatting (https://github.com/pydata/xarray/blob/master/xarray/core/dataset.py#L484) is nice. However, there are times I would look to see the full variables names not just
Doing Ideally there would be a setting to toggle to specify the length of the formatter akin to https://pandas.pydata.org/pandas-docs/stable/user_guide/options.html#overview
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I agree, this would be a welcome option! In the meantime, you might try something like |
Beta Was this translation helpful? Give feedback.
-
I also just learned this is available |
Beta Was this translation helpful? Give feedback.
I agree, this would be a welcome option!
In the meantime, you might try something like
print(', '.join(ds.data_vars))
for printing the full list of data variables.