docstr: Produces a Dense Matrix of the conditional probability of x given y
  
  Args:
      x: the column variable of interest given the column y=given
      given : the variabe to fix constant
      df pd.DataFrame: dataframe
      how (str, optional): One of 'column' or 'index'. Defaults to 'index'.
      kind (str, optional): 'nodes' or 'edges'. Defaults to 'nodes'.
  Returns:
      pd.DataFrame: the conditional probability of x given the column y
      as dense array like dataframe
docstr_tok: ["Produces","a","Dense","Matrix","of","the","conditional","probability","of","x","given","y","Args",":","x",":","the","column","variable","of","interest","given","the","column","y=given","given",":","the","variabe","to","fix","constant","df","pd.DataFrame",":","dataframe","how","(","str",",","optional",")",":","One","of","'column","'","or","'index","'",".","Defaults","to","'index","'",".","kind","(","str",",","optional",")",":","'nodes","'","or","'edges","'",".","Defaults","to","'nodes","'",".","Returns",":","pd.DataFrame",":","the","conditional","probability","of","x","given","the","column","y","as","dense","array","like","dataframe"]
code: def conditional_probs(self, x, given, kind="nodes", how="index"):
      """Produces a Dense Matrix of the conditional probability of x given y
  
      Args:
          x: the column variable of interest given the column y=given
          given : the variabe to fix constant
          df pd.DataFrame: dataframe
          how (str, optional): One of 'column' or 'index'. Defaults to 'index'.
          kind (str, optional): 'nodes' or 'edges'. Defaults to 'nodes'.
      Returns:
          pd.DataFrame: the conditional probability of x given the column y
          as dense array like dataframe
      """
      res = self.bind()
  
      if kind == "nodes":
          df = res._nodes
      else:
          df = res._edges
  
      condprobs = probs(x, given, df, how=how)
      return condprobs
  
file_path: pygraphistry/graphistry/compute/conditional.py
imports: import logging
  import pandas
  from typing import Any, List, Union, TYPE_CHECKING
  from typing_extensions import Literal
  from graphistry.Engine import Engine
  from graphistry.Plottable import Plottable
label_desc: Use image node_id 3 for calling the ConditionalMixin obj's underlying member method code with example usage: obj.conditional_probs(x, given, kind, how) and returns: condprobs