larray-project / larray

N-dimensional labelled arrays in Python
https://larray.readthedocs.io/
GNU General Public License v3.0
8 stars 6 forks source link

Tutorial (renaming - relabeling section): add a warning for set_axes() #1043

Open alixdamman opened 1 year ago

alixdamman commented 1 year ago

Add a warning saying that set_axes() (set_axis_labels() in the future) does NOT check if new label make sense.

For example, if we have an Array 'pop' with an Axis gender=man,woman, the code:

pop = pop.set_axes('gender', 'women,men')

will not fail but values for men and women will be reversed.