def update_layer(self, df, url):
    feat_layer = FeatureLayer(url=url, gis=self.gis_conn)
    res = feat_layer.edit_features(updates=df.to_featureset())
    if ('updateResults' not in res):
        raise Exception('Edit Features Returned Issues: {}'.format(res))
    else:
        return res['updateResults']
def update_layer(self, df, url):
    feat_layer = FeatureLayer(url=url, gis=self.gis_conn)
    res = feat_layer.edit_features(updates=df.to_featureset())
    if ('updateResults' not in res):
        raise Exception('Edit Features Returned Issues: {}'.format(res))
    else:
        return res['updateResults']