class_docstr: An ml-metadata store that provides read-only methods for notebooks.
class_docstr_tok: ["An","ml-metadata","store","that","provides","read-only","methods","for","notebooks","."]
docstr: Returns a `pd.DataFrame` based on an artifact/execution properties.
  
  Args:
    obj: An instance of `metadata_store_pb2.Artifact` or
      `metadata_store_pb2.Execution`.
  
  Returns:
    A `pd.DataFrame` to display the properties of an artifact/execution.
docstr_tok: ["Returns","a","`","pd.DataFrame","`","based","on","an","artifact\/execution","properties",".","Args",":","obj",":","An","instance","of","`","metadata_store_pb2.Artifact","`","or","`","metadata_store_pb2.Execution","`",".","Returns",":","A","`","pd.DataFrame","`","to","display","the","properties","of","an","artifact\/execution","."]
code: def get_df_from_single_artifact_or_execution(self, obj):
      """Returns a `pd.DataFrame` based on an artifact/execution properties.
  
      Args:
        obj: An instance of `metadata_store_pb2.Artifact` or
          `metadata_store_pb2.Execution`.
  
      Returns:
        A `pd.DataFrame` to display the properties of an artifact/execution.
      """
      data = {}
      if isinstance(obj, metadata_store_pb2.Artifact):
          data["URI"] = obj.uri
      for p in obj.properties:
          data[p.upper()] = _get_value_str(obj.properties[p])
      for p in obj.custom_properties:
          data[p.upper()] = _get_value_str(obj.custom_properties[p])
      return pd.DataFrame.from_dict(
          data=data, orient="index", columns=[""]
      ).fillna("-")
  
imports: import re
  from IPython.display import display_html
  import matplotlib.pyplot
  import networkx
  import pandas
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 2 for calling the ReadonlyMetadataStore obj's underlying member method code with example usage: obj.get_df_from_single_artifact_or_execution(obj) and returns: pd