def set_grid_sdf(self, lb_days=1000, use_query=False):
    if (not self.grid_url):
        raise Exception('Grid URL Not Set')
    elif use_query:
        dates = get_dates_in_range(lb_days)
        grid_fl = FeatureLayer(url=self.grid_url, gis=self.gis_conn)
        self.grid_wkid = grid_fl.properties.extent.spatialReference.wkid
        self.grid_sdf = grid_fl.query(where=form_query_string(dates)).df
    else:
        grid_fl = FeatureLayer(url=self.grid_url, gis=self.gis_conn)
        self.grid_wkid = grid_fl.properties.extent.spatialReference.wkid
        self.grid_sdf = grid_fl.query(return_all_records=False).df
def set_grid_sdf(self, lb_days=1000, use_query=False):
    if (not self.grid_url):
        raise Exception('Grid URL Not Set')
    elif use_query:
        dates = get_dates_in_range(lb_days)
        grid_fl = FeatureLayer(url=self.grid_url, gis=self.gis_conn)
        self.grid_wkid = grid_fl.properties.extent.spatialReference.wkid
        self.grid_sdf = grid_fl.query(where=form_query_string(dates)).df
    else:
        grid_fl = FeatureLayer(url=self.grid_url, gis=self.gis_conn)
        self.grid_wkid = grid_fl.properties.extent.spatialReference.wkid
        self.grid_sdf = grid_fl.query(return_all_records=False).df