bagpy/bagreader.py
def timeindex(df, inplace=False):
    '''
    Convert multi Dataframe of which on column must be 'Time'  to pandas-compatible timeseries where timestamp is used to replace indices

    Parameters
    --------------

    df: `pandas.DataFrame`
        A pandas dataframe with two columns with the column names "Time" and "Message"

    inplace: `bool`
        Modifies the actual dataframe, if true, otherwise doesn't.

    Returns
    -----------
    `pandas.DataFrame`
        Pandas compatible timeseries with a single column having column name "Message" where indices are timestamp in hum  an readable format.
    '''
    
    if inplace:
        newdf = df
    else:
        newdf =df.copy(deep = True)

    newdf['Time'] = df['Time']
    Time = pd.to_datetime(newdf['Time'], unit='s')
    newdf['Clock'] = pd.DatetimeIndex(Time)
    
    if inplace:
        newdf.set_index('Clock', inplace=inplace)
    else:
        newdf = newdf.set_index('Clock')
    return newdf

    Convert multi Dataframe of which on column must be 'Time'  to pandas-compatible timeseries where timestamp is used to replace indices

    Parameters
    --------------

    df: `pandas.DataFrame`
        A pandas dataframe with two columns with the column names "Time" and "Message"

    inplace: `bool`
        Modifies the actual dataframe, if true, otherwise doesn't.

    Returns
    -----------
    `pandas.DataFrame`
        Pandas compatible timeseries with a single column having column name "Message" where indices are timestamp in hum  an readable format.
    
Convert multi Dataframe of which on column must be 'Time'  to pandas-compatible timeseries where timestamp is used to replace indices
Parameters

`pandas.DataFrame`
A pandas dataframe with two columns with the column names "Time" and "Message"

`bool`
Modifies the actual dataframe, if true, otherwise doesn't.

Returns

`pandas.DataFrame`
Pandas compatible timeseries with a single column having column name "Message" where indices are timestamp in hum  an readable format.
Convert multi Dataframe of which on column must be ' Time ' to pandas - compatible timeseries where timestamp is used to replace indices Parameters ` pandas . DataFrame ` A pandas dataframe with two columns with the column names " Time " and " Message " ` bool ` Modifies the actual dataframe if true otherwise doesn ' t . Returns ` pandas . DataFrame ` Pandas compatible timeseries with a single column having column name " Message " where indices are timestamp in hum an readable format .
def timeindex(df, inplace=False):
    if inplace:
        newdf = df
    else:
        newdf =df.copy(deep = True)
    newdf['Time'] = df['Time']
    Time = pd.to_datetime(newdf['Time'], unit='s')
    newdf['Clock'] = pd.DatetimeIndex(Time)
    if inplace:
        newdf.set_index('Clock', inplace=inplace)
    else:
        newdf = newdf.set_index('Clock')
    return newdf
def timeindex ( df , inplace = False ) : if inplace : newdf = df else : newdf = df . copy ( deep = True ) newdf [ 'Time' ] = df [ 'Time' ] Time = pd . to_datetime ( newdf [ 'Time' ] , unit = 's' ) newdf [ 'Clock' ] = pd . DatetimeIndex ( Time ) if inplace : newdf . set_index ( 'Clock' , inplace = inplace ) else : newdf = newdf . set_index ( 'Clock' ) return newdf
Convert multi Dataframe of which on column must be 'Time'  to pandas-compatible timeseries where timestamp is used to replace indices
Parameters
Convert multi Dataframe of which on column must be ' Time ' to pandas - compatible timeseries where timestamp is used to replace indices Parameters
'''
    Convert multi Dataframe of which on column must be 'Time'  to pandas-compatible timeseries where timestamp is used to replace indices

    Parameters
    --------------

    df: `pandas.DataFrame`
        A pandas dataframe with two columns with the column names "Time" and "Message"

    inplace: `bool`
        Modifies the actual dataframe, if true, otherwise doesn't.

    Returns
    -----------
    `pandas.DataFrame`
        Pandas compatible timeseries with a single column having column name "Message" where indices are timestamp in hum  an readable format.
    '''
df
inplace