tiledbsoma.io.update_var¶
- tiledbsoma.io.update_var(exp: Experiment, new_data: DataFrame, measurement_name: str, *, context: SOMATileDBContext | None = None, platform_config: Dict[str, Mapping[str, Any]] | object | None = None, default_index_name: str = 'var_id') None¶
Replace the entire
varDataFrame with the contents of a newpandas.DataFrame.Analogous to
update_obs, but replaces thevarDataFrame within a specificMeasurement. Seeupdate_obs()for details.- Parameters:
exp –
Experimentopened for write.new_data – A
pandas.DataFramecontaining the final desired data for theMeasurement’svar.measurement_name – Key in
exp.msidentifying theMeasurementwhosevarwill be replaced.context – Optional
SOMATileDBContextcontaining storage parameters, etc.platform_config – Platform-specific options used to update this array, provided in the form
{"tiledb": {"create": {"dataframe_dim_zstd_level": 7}}}.default_index_name – Name to assign the index column if it is unnamed or is named
"index"in thenew_dataclass:pandas.DataFrame.
See also
update_obs()for updating theExperiment.obsDataFrame.
Lifecycle
Maturing.