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` of given artifacts'/executions' properties.
docstr_tok: ["Returns","a","`","pd.DataFrame","`","of","given","artifacts'\/executions","'","properties","."]
code: def get_df_from_artifacts_or_executions(self, objects):
      """Returns a `pd.DataFrame` of given artifacts'/executions' properties."""
      data = {}
      for obj in objects:
          col_map = {}
          if isinstance(obj, metadata_store_pb2.Artifact):
              col_map["URI"] = obj.uri
          for p in obj.properties:
              col_map[p.upper()] = _get_value_str(obj.properties[p])
          for p in obj.custom_properties:
              col_map[p.upper()] = _get_value_str(
                  obj.custom_properties[p]
              )
          data[obj.id] = col_map
      df = pd.DataFrame.from_dict(data=data, orient="index").fillna("-")
      df.index.name = "ID"
      return df
  
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 3 for calling the ReadonlyMetadataStore obj's underlying member method code with example usage: obj.get_df_from_artifacts_or_executions(objects) and returns: df