tools/perf/cli_tools/flakiness_cli/analysis.py
def FilterBy(df, **kwargs):
  """Filter out a data frame by applying patterns to columns.

  Args:
    df: A data frame to filter.
    **kwargs: Remaining keyword arguments are interpreted as column=pattern
      specifications. The pattern may contain shell-style wildcards, only rows
      whose value in the specified column matches the pattern will be kept in
      the result. If the pattern is None, no filtering is done.

  Returns:
    The filtered data frame (a view on the original data frame).
  """
  for column, pattern in kwargs.items():
    if pattern is not None:
      df = df[df[column].str.match(fnmatch.translate(pattern), case=False)]
  return df
Filter out a data frame by applying patterns to columns.

  Args:
    df: A data frame to filter.
    **kwargs: Remaining keyword arguments are interpreted as column=pattern
      specifications. The pattern may contain shell-style wildcards, only rows
      whose value in the specified column matches the pattern will be kept in
      the result. If the pattern is None, no filtering is done.

  Returns:
    The filtered data frame (a view on the original data frame).
  
Filter out a data frame by applying patterns to columns.
Filter out a data frame by applying patterns to columns .
def FilterBy(df, **kwargs):
  for column, pattern in kwargs.items():
    if pattern is not None:
      df = df[df[column].str.match(fnmatch.translate(pattern), case=False)]
  return df
def FilterBy ( df , ** kwargs ) : for column , pattern in kwargs . items ( ) : if pattern is not None : df = df [ df [ column ] . str . match ( fnmatch . translate ( pattern ) , case = False ) ] return df
Filter out a data frame by applying patterns to columns.
Filter out a data frame by applying patterns to columns .
"""Filter out a data frame by applying patterns to columns.

  Args:
    df: A data frame to filter.
    **kwargs: Remaining keyword arguments are interpreted as column=pattern
      specifications. The pattern may contain shell-style wildcards, only rows
      whose value in the specified column matches the pattern will be kept in
      the result. If the pattern is None, no filtering is done.

  Returns:
    The filtered data frame (a view on the original data frame).
  """
The filtered data frame (a view on the original data frame).
The filtered data frame ( a view on the original data frame ) .
df
A data frame to filter.
A data frame to filter .
**kwargs
Remaining keyword arguments are interpreted as column=pattern
specifications. The pattern may contain shell-style wildcards, only rows
whose value in the specified column matches the pattern will be kept in
the result. If the pattern is None, no filtering is done.
Remaining keyword arguments are interpreted as column = pattern specifications . The pattern may contain shell - style wildcards only rows whose value in the specified column matches the pattern will be kept in the result . If the pattern is None no filtering is done .