Generate shallow DataFrame
.
The data matrix X
is returned as
DataFrame
, where obs_names
initializes the
index, and var_names
the columns.
- Parameters:
- layer
str
| None
(default: None
) Key for .layers
.
- Return type:
DataFrame
- Returns:
Pandas DataFrame of specified data matrix.