starepandas.STAREDataFrame.set_trixels#

STAREDataFrame.set_trixels(col, inplace=False)#

Set the trixel column

Parameters
col: array-like or string

If array like, will add the array as a new trixel column. If string, will set the df[‘col’] as the trixel column. If None, will generate trixels from the STARE column.

inplace: bool

Modify the StareDataFrame in place (do not create a new object)

Returns
df: DataFrame

DataFrame or None

Examples

>>> import starepandas
>>> sids = [4611686018427387903, 4611686018427387903, 4611686018427387903]
>>> sdf = starepandas.STAREDataFrame(sids=sids)
>>> trixels = sdf.make_trixels()
>>> sdf.set_trixels(trixels, inplace=True)