def get_location_dataframe(matrix_dataframe):
    """
    Extracts the X, Y and Z location from the 4x4 matrix dataframe above and places them
    in a smaller dataframe with just the locations per timestamp.

    :param pd.DataFrame matrix_dataframe:
    :return: pd.DataFrame
    """

    df_location = matrix_dataframe.loc[:, ['Value.M41', 'Value.M42', 'Value.M43']]
    df_location.columns = ['X', 'Y', 'Z']
    return df_location