Convenience function for returning a 1 dimensional ndarray of values from X, layers[k], or obs.
X
layers
[k]
obs
Made for convenience, not performance. Intentionally permissive about arguments, for easy iterative use.
Key to use. Should be in obs_names or var.columns.
obs_names
var
.columns
str
None
Optional
What layer values should be returned from. If None, X is used.
ndarray
A one dimensional nd array, with values for each var in the same order
as var_names.
var_names