def dropIdColumn(train, test):
    """Detaches Id column from both datasets

    Parameters:
    train (pd.Dataset): Training set
    test (pd.Dataset): Testing set

    Returns:
    train (pd.Dataset): Training set without Id
    test (pd.Dataset): Testing set without Id
    trainId (pd.Dataset) : Training Id fields
    testId (pd.Dataset) : Testing Id fields

   """
    trainId = train['Id']
    testId = test['Id']

    train.drop("Id", axis=1, inplace=True)
    test.drop("Id", axis=1, inplace=True)
    return train, test, trainId, testId