ratpmetro/main.py
def incident_prob(self, year=None, loc=None):
        """
        Return the mean probability of incidents

        Args:
            year (int): If ``year`` is given then only tweets within this specific year are used, else then all downloaded tweets are used
            loc (list of str): Time period from ``loc[0]`` to ``loc[1]``
        """
        df = self._df_processed_loc(year=year, loc=loc)
        return df["is_incident"].mean()

        Return the mean probability of incidents

        Args:
            year (int): If ``year`` is given then only tweets within this specific year are used, else then all downloaded tweets are used
            loc (list of str): Time period from ``loc[0]`` to ``loc[1]``
        
Return the mean probability of incidents
Return the mean probability of incidents
def incident_prob(self, year=None, loc=None):
        df = self._df_processed_loc(year=year, loc=loc)
        return df["is_incident"].mean()
def incident_prob ( self , year = None , loc = None ) : df = self . _df_processed_loc ( year = year , loc = loc ) return df [ "is_incident" ] . mean ( )
Return the mean probability of incidents
Return the mean probability of incidents
"""
        Return the mean probability of incidents

        Args:
            year (int): If ``year`` is given then only tweets within this specific year are used, else then all downloaded tweets are used
            loc (list of str): Time period from ``loc[0]`` to ``loc[1]``
        """
self
year
If ``year`` is given then only tweets within this specific year are used, else then all downloaded tweets are used
If ` ` year ` ` is given then only tweets within this specific year are used else then all downloaded tweets are used
loc
None