{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "from seeq import spy\n",
    "import pandas as pd\n",
    "import numpy as np"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Log into Seeq Server if you're not using Seeq Data Lab:\n",
    "spy.login(url='http://localhost:34216', credentials_file='../../credentials.key', force=False)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "from seeq.spy.assets import Asset\n",
    "\n",
    "class Area(Asset):\n",
    "    def initialize(self):\n",
    "        # These are effectively x,y coordinates proportional to the\n",
    "        # map of the U.S. in this folder.\n",
    "        map_positions = {\n",
    "            # Cooling Tower 1\n",
    "            'A': ['15%', '4%'],\n",
    "            'B': ['45%', '60%'],\n",
    "            'C': ['35%', '35%'],\n",
    "            'G': ['70%', '60%'],\n",
    "            'H': ['32%', '80%'],\n",
    "            'I': ['55%', '40%'],\n",
    "            'J': ['15%', '34%'],\n",
    "            'K': ['80%', '6%'],\n",
    "            \n",
    "            # Cooling Tower 2\n",
    "            'D': ['40%', '50%'],\n",
    "            'E': ['50%', '60%'],\n",
    "            'F': ['60%', '70%']\n",
    "        }\n",
    "        \n",
    "        self.map_position = map_positions[self['Name']]\n",
    "    \n",
    "    @Asset.Attribute()\n",
    "    def Incidents(self, metadata):\n",
    "        return {\n",
    "            'Type': 'Condition',\n",
    "            'Formula': '$a.validValues().valueSearch(isGreaterThan(120))',\n",
    "            'Formula Parameters': {\n",
    "                '$a': metadata[metadata['Name'] == 'Temperature']\n",
    "            }\n",
    "        }\n",
    "    \n",
    "    @Asset.Attribute()\n",
    "    def Incident_Count(self, metadata):\n",
    "        return {\n",
    "            'Type': 'Metric',\n",
    "            'Measured Item': self.Incidents(),\n",
    "            'Measured Item Maximum Duration': '40d',\n",
    "            'Statistic': 'count',\n",
    "            'Thresholds': {\n",
    "                'HiHiHi': 1,\n",
    "                'HiHi': 0\n",
    "            }\n",
    "        }\n",
    "    \n",
    "    @Asset.Display()\n",
    "    def Incident_Display(self, metadata, analysis):\n",
    "        worksheet = analysis.worksheet('Area ' + self.definition['Name'])\n",
    "        \n",
    "        workstep = worksheet.workstep()\n",
    "        workstep.display_items = [{\n",
    "            'Item': self.Incident_Count()\n",
    "        }]\n",
    "        workstep.view = 'Scorecard'\n",
    "        workstep.data['state']['stores']['sqTrendMetricStore']['scorecardHeaders'] = {\n",
    "          \"type\": \"none\"\n",
    "        }\n",
    "        workstep.data['state']['stores']['sqTrendMetricStore']['scorecardColumns'] = list()\n",
    "        \n",
    "        return workstep\n",
    "    \n",
    "    @Asset.Display()\n",
    "    def Detail(self, metadata, analysis):\n",
    "        worksheet = analysis.worksheet('Area ' + self.definition['Name'])\n",
    "        \n",
    "        workstep = worksheet.workstep()\n",
    "        workstep.display_items = metadata[metadata['Name'] == 'Temperature']\n",
    "        workstep.view = 'Trend'\n",
    "        \n",
    "        return workstep\n",
    "\n",
    "class Cooling_Tower(Asset):\n",
    "    @Asset.Component()\n",
    "    def Areas(self, metadata):\n",
    "        return self.build_components(Area, metadata, column_name='Area')\n",
    "    \n",
    "    @Asset.DateRange()\n",
    "    def Last_Two_Months(self, metadata):\n",
    "        return {\n",
    "            'Start': '2019-11-01',\n",
    "            'End': '2020-01-01'\n",
    "        }\n",
    "    \n",
    "    @Asset.DateRange()\n",
    "    def Last_Week(self, metadata):\n",
    "        return {\n",
    "            'Start': '2020-01-01',\n",
    "            'End': '2020-01-08'\n",
    "        }\n",
    "        \n",
    "    @Asset.Document()\n",
    "    def Topic_Document(self, metadata, topic):\n",
    "        document = topic.document('Cooling Tower ' + self.definition['Name'])\n",
    "        document.render_template(filename='Cooling_Tower_Health.html', asset=self)\n",
    "        \n",
    "class Region(Asset):    \n",
    "    @Asset.Component()\n",
    "    def Cooling_Towers(self, metadata):\n",
    "        return self.build_components(Cooling_Tower, metadata, column_name='Cooling Tower')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div style=\"background-color: #EEFFEE;text-align: left;\">Query successful</div><table><tr><td style=\"background-color: #EEFFEE;\"></td><td style=\"background-color: #EEFFEE;\">Count</td><td style=\"background-color: #EEFFEE;\">Time</td></tr><tr style=\"background-color: #EEFFEE;\"><td>Results</td><td>10</td><td>00:00:00.23</td></tr></table>"
      ],
      "text/plain": [
       "<IPython.core.display.HTML object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ID</th>\n",
       "      <th>Path</th>\n",
       "      <th>Asset</th>\n",
       "      <th>Name</th>\n",
       "      <th>Description</th>\n",
       "      <th>Type</th>\n",
       "      <th>Value Unit Of Measure</th>\n",
       "      <th>Datasource Name</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1CBC2C96-A305-4D9E-BAA8-0CBF269C3726</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area C</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>AA6599FA-BA60-433E-A2CA-459341F66D5C</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area I</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0F6F884A-C4AE-47D2-AF90-D09F9B40E5F1</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area G</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>027A1C73-4564-40C2-98CE-16A0A93EFE66</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 2</td>\n",
       "      <td>Area E</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>D397B18E-E93C-4481-B035-1704BA7DF893</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area B</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>F9F8F062-97D4-4D99-9B18-5EFB6F1C2243</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area J</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>0A0D4C30-49B1-49CD-BFF3-00669E53FBFD</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area K</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>C63DCBDC-6DFE-42AE-BD56-3EA290E20C5B</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area H</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>5B72793B-9680-4B98-BBF0-CEF12343261E</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 2</td>\n",
       "      <td>Area D</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>683778EC-678A-4FC4-BBCA-B835D180B042</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area A</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                     ID                        Path   Asset  \\\n",
       "0  1CBC2C96-A305-4D9E-BAA8-0CBF269C3726  Example >> Cooling Tower 1  Area C   \n",
       "1  AA6599FA-BA60-433E-A2CA-459341F66D5C  Example >> Cooling Tower 1  Area I   \n",
       "2  0F6F884A-C4AE-47D2-AF90-D09F9B40E5F1  Example >> Cooling Tower 1  Area G   \n",
       "3  027A1C73-4564-40C2-98CE-16A0A93EFE66  Example >> Cooling Tower 2  Area E   \n",
       "4  D397B18E-E93C-4481-B035-1704BA7DF893  Example >> Cooling Tower 1  Area B   \n",
       "5  F9F8F062-97D4-4D99-9B18-5EFB6F1C2243  Example >> Cooling Tower 1  Area J   \n",
       "6  0A0D4C30-49B1-49CD-BFF3-00669E53FBFD  Example >> Cooling Tower 1  Area K   \n",
       "7  C63DCBDC-6DFE-42AE-BD56-3EA290E20C5B  Example >> Cooling Tower 1  Area H   \n",
       "8  5B72793B-9680-4B98-BBF0-CEF12343261E  Example >> Cooling Tower 2  Area D   \n",
       "9  683778EC-678A-4FC4-BBCA-B835D180B042  Example >> Cooling Tower 1  Area A   \n",
       "\n",
       "          Name  Description          Type Value Unit Of Measure  \\\n",
       "0  Temperature          NaN  StoredSignal                    °F   \n",
       "1  Temperature          NaN  StoredSignal                    °F   \n",
       "2  Temperature          NaN  StoredSignal                    °F   \n",
       "3  Temperature          NaN  StoredSignal                    °F   \n",
       "4  Temperature          NaN  StoredSignal                    °F   \n",
       "5  Temperature          NaN  StoredSignal                    °F   \n",
       "6  Temperature          NaN  StoredSignal                    °F   \n",
       "7  Temperature          NaN  StoredSignal                    °F   \n",
       "8  Temperature          NaN  StoredSignal                    °F   \n",
       "9  Temperature          NaN  StoredSignal                    °F   \n",
       "\n",
       "  Datasource Name  \n",
       "0    Example Data  \n",
       "1    Example Data  \n",
       "2    Example Data  \n",
       "3    Example Data  \n",
       "4    Example Data  \n",
       "5    Example Data  \n",
       "6    Example Data  \n",
       "7    Example Data  \n",
       "8    Example Data  \n",
       "9    Example Data  "
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "search_df = spy.search({\n",
    "    'Path': 'Example',\n",
    "    'Type': 'Signal',\n",
    "    'Name': 'Temperature'})\n",
    "\n",
    "search_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ID</th>\n",
       "      <th>Path</th>\n",
       "      <th>Asset</th>\n",
       "      <th>Name</th>\n",
       "      <th>Description</th>\n",
       "      <th>Type</th>\n",
       "      <th>Value Unit Of Measure</th>\n",
       "      <th>Datasource Name</th>\n",
       "      <th>Cooling Tower</th>\n",
       "      <th>Area</th>\n",
       "      <th>Build Path</th>\n",
       "      <th>Build Asset</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1CBC2C96-A305-4D9E-BAA8-0CBF269C3726</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area C</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "      <td>1</td>\n",
       "      <td>C</td>\n",
       "      <td>Cooling Tower Health</td>\n",
       "      <td>North America</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>AA6599FA-BA60-433E-A2CA-459341F66D5C</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area I</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "      <td>1</td>\n",
       "      <td>I</td>\n",
       "      <td>Cooling Tower Health</td>\n",
       "      <td>North America</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0F6F884A-C4AE-47D2-AF90-D09F9B40E5F1</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area G</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "      <td>1</td>\n",
       "      <td>G</td>\n",
       "      <td>Cooling Tower Health</td>\n",
       "      <td>North America</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>027A1C73-4564-40C2-98CE-16A0A93EFE66</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 2</td>\n",
       "      <td>Area E</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "      <td>2</td>\n",
       "      <td>E</td>\n",
       "      <td>Cooling Tower Health</td>\n",
       "      <td>North America</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>D397B18E-E93C-4481-B035-1704BA7DF893</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area B</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "      <td>1</td>\n",
       "      <td>B</td>\n",
       "      <td>Cooling Tower Health</td>\n",
       "      <td>North America</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>F9F8F062-97D4-4D99-9B18-5EFB6F1C2243</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area J</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "      <td>1</td>\n",
       "      <td>J</td>\n",
       "      <td>Cooling Tower Health</td>\n",
       "      <td>North America</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>0A0D4C30-49B1-49CD-BFF3-00669E53FBFD</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area K</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "      <td>1</td>\n",
       "      <td>K</td>\n",
       "      <td>Cooling Tower Health</td>\n",
       "      <td>North America</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>C63DCBDC-6DFE-42AE-BD56-3EA290E20C5B</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area H</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "      <td>1</td>\n",
       "      <td>H</td>\n",
       "      <td>Cooling Tower Health</td>\n",
       "      <td>North America</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>5B72793B-9680-4B98-BBF0-CEF12343261E</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 2</td>\n",
       "      <td>Area D</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "      <td>2</td>\n",
       "      <td>D</td>\n",
       "      <td>Cooling Tower Health</td>\n",
       "      <td>North America</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>683778EC-678A-4FC4-BBCA-B835D180B042</td>\n",
       "      <td>Example &gt;&gt; Cooling Tower 1</td>\n",
       "      <td>Area A</td>\n",
       "      <td>Temperature</td>\n",
       "      <td>NaN</td>\n",
       "      <td>StoredSignal</td>\n",
       "      <td>°F</td>\n",
       "      <td>Example Data</td>\n",
       "      <td>1</td>\n",
       "      <td>A</td>\n",
       "      <td>Cooling Tower Health</td>\n",
       "      <td>North America</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                     ID                        Path   Asset  \\\n",
       "0  1CBC2C96-A305-4D9E-BAA8-0CBF269C3726  Example >> Cooling Tower 1  Area C   \n",
       "1  AA6599FA-BA60-433E-A2CA-459341F66D5C  Example >> Cooling Tower 1  Area I   \n",
       "2  0F6F884A-C4AE-47D2-AF90-D09F9B40E5F1  Example >> Cooling Tower 1  Area G   \n",
       "3  027A1C73-4564-40C2-98CE-16A0A93EFE66  Example >> Cooling Tower 2  Area E   \n",
       "4  D397B18E-E93C-4481-B035-1704BA7DF893  Example >> Cooling Tower 1  Area B   \n",
       "5  F9F8F062-97D4-4D99-9B18-5EFB6F1C2243  Example >> Cooling Tower 1  Area J   \n",
       "6  0A0D4C30-49B1-49CD-BFF3-00669E53FBFD  Example >> Cooling Tower 1  Area K   \n",
       "7  C63DCBDC-6DFE-42AE-BD56-3EA290E20C5B  Example >> Cooling Tower 1  Area H   \n",
       "8  5B72793B-9680-4B98-BBF0-CEF12343261E  Example >> Cooling Tower 2  Area D   \n",
       "9  683778EC-678A-4FC4-BBCA-B835D180B042  Example >> Cooling Tower 1  Area A   \n",
       "\n",
       "          Name  Description          Type Value Unit Of Measure  \\\n",
       "0  Temperature          NaN  StoredSignal                    °F   \n",
       "1  Temperature          NaN  StoredSignal                    °F   \n",
       "2  Temperature          NaN  StoredSignal                    °F   \n",
       "3  Temperature          NaN  StoredSignal                    °F   \n",
       "4  Temperature          NaN  StoredSignal                    °F   \n",
       "5  Temperature          NaN  StoredSignal                    °F   \n",
       "6  Temperature          NaN  StoredSignal                    °F   \n",
       "7  Temperature          NaN  StoredSignal                    °F   \n",
       "8  Temperature          NaN  StoredSignal                    °F   \n",
       "9  Temperature          NaN  StoredSignal                    °F   \n",
       "\n",
       "  Datasource Name Cooling Tower Area            Build Path    Build Asset  \n",
       "0    Example Data             1    C  Cooling Tower Health  North America  \n",
       "1    Example Data             1    I  Cooling Tower Health  North America  \n",
       "2    Example Data             1    G  Cooling Tower Health  North America  \n",
       "3    Example Data             2    E  Cooling Tower Health  North America  \n",
       "4    Example Data             1    B  Cooling Tower Health  North America  \n",
       "5    Example Data             1    J  Cooling Tower Health  North America  \n",
       "6    Example Data             1    K  Cooling Tower Health  North America  \n",
       "7    Example Data             1    H  Cooling Tower Health  North America  \n",
       "8    Example Data             2    D  Cooling Tower Health  North America  \n",
       "9    Example Data             1    A  Cooling Tower Health  North America  "
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "metadata_df = search_df.copy()\n",
    "metadata_df['Cooling Tower'] = metadata_df['Path'].str.extract(r'Cooling Tower (\\d)')\n",
    "metadata_df['Area'] = metadata_df['Asset'].str.extract(r'Area (\\w)')\n",
    "metadata_df['Build Path'] = 'Cooling Tower Health'\n",
    "metadata_df['Build Asset'] = 'North America'\n",
    "metadata_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "J:\\BitBucket\\crab\\sdk\\pypi\\seeq\\spy\\workbooks\\_worksheet.py:579: FutureWarning: Passing a datetime or Timestamp with tzinfo and the tz parameter will raise in the future. Use tz_convert instead.\n",
      "  end_datetime = pd.Timestamp(existing_date_range[\"End\"], tz=_login.get_user_timezone())\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Asset</th>\n",
       "      <th>Asset Object</th>\n",
       "      <th>Build Result</th>\n",
       "      <th>Formula</th>\n",
       "      <th>Formula Parameters</th>\n",
       "      <th>Measured Item</th>\n",
       "      <th>Measured Item Maximum Duration</th>\n",
       "      <th>Name</th>\n",
       "      <th>Object</th>\n",
       "      <th>Path</th>\n",
       "      <th>Statistic</th>\n",
       "      <th>Template</th>\n",
       "      <th>Thresholds</th>\n",
       "      <th>Type</th>\n",
       "      <th>Workbook Type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>C</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; C</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>{'$a': ['ID']}</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Condition</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>C</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; C</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>Metric</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>C</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; C</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>C</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>I</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; I</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>{'$a': ['ID']}</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Condition</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>I</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; I</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>Metric</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>I</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; I</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>I</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>G</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; G</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>{'$a': ['ID']}</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Condition</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>G</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; G</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>Metric</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>G</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; G</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>G</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; B</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>{'$a': ['ID']}</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Condition</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; B</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>Metric</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; B</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>B</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>J</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; J</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>{'$a': ['ID']}</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Condition</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>J</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; J</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>Metric</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>J</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; J</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>J</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>K</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; K</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>{'$a': ['ID']}</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Condition</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>K</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; K</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>Metric</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>K</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; K</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>K</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>H</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; H</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>{'$a': ['ID']}</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Condition</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>H</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; H</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>Metric</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>H</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; H</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>H</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>A</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; A</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>{'$a': ['ID']}</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Condition</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>A</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; A</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>Metric</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>A</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; A</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>A</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>E</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2 &gt;&gt; E</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>{'$a': ['ID']}</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Condition</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>E</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2 &gt;&gt; E</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>Metric</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>E</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2 &gt;&gt; E</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>E</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>D</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2 &gt;&gt; D</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>{'$a': ['ID']}</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Condition</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>D</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2 &gt;&gt; D</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>Metric</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>D</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2 &gt;&gt; D</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>D</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>2</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>North America</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>North America</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Region</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>None</td>\n",
       "      <td>Workbook \"None\" (AECCA193-1841-464B-A611-AFE36...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Workbook</td>\n",
       "      <td>Analysis</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>None</td>\n",
       "      <td>Workbook \"None\" (ADFFD3C2-ACBE-4A45-8EB9-87FF2...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Workbook</td>\n",
       "      <td>Topic</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            Asset                                     Asset Object  \\\n",
       "0               C  Cooling Tower Health >> North America >> 1 >> C   \n",
       "1               C  Cooling Tower Health >> North America >> 1 >> C   \n",
       "2               C  Cooling Tower Health >> North America >> 1 >> C   \n",
       "3               I  Cooling Tower Health >> North America >> 1 >> I   \n",
       "4               I  Cooling Tower Health >> North America >> 1 >> I   \n",
       "5               I  Cooling Tower Health >> North America >> 1 >> I   \n",
       "6               G  Cooling Tower Health >> North America >> 1 >> G   \n",
       "7               G  Cooling Tower Health >> North America >> 1 >> G   \n",
       "8               G  Cooling Tower Health >> North America >> 1 >> G   \n",
       "9               B  Cooling Tower Health >> North America >> 1 >> B   \n",
       "10              B  Cooling Tower Health >> North America >> 1 >> B   \n",
       "11              B  Cooling Tower Health >> North America >> 1 >> B   \n",
       "12              J  Cooling Tower Health >> North America >> 1 >> J   \n",
       "13              J  Cooling Tower Health >> North America >> 1 >> J   \n",
       "14              J  Cooling Tower Health >> North America >> 1 >> J   \n",
       "15              K  Cooling Tower Health >> North America >> 1 >> K   \n",
       "16              K  Cooling Tower Health >> North America >> 1 >> K   \n",
       "17              K  Cooling Tower Health >> North America >> 1 >> K   \n",
       "18              H  Cooling Tower Health >> North America >> 1 >> H   \n",
       "19              H  Cooling Tower Health >> North America >> 1 >> H   \n",
       "20              H  Cooling Tower Health >> North America >> 1 >> H   \n",
       "21              A  Cooling Tower Health >> North America >> 1 >> A   \n",
       "22              A  Cooling Tower Health >> North America >> 1 >> A   \n",
       "23              A  Cooling Tower Health >> North America >> 1 >> A   \n",
       "24              1       Cooling Tower Health >> North America >> 1   \n",
       "25              E  Cooling Tower Health >> North America >> 2 >> E   \n",
       "26              E  Cooling Tower Health >> North America >> 2 >> E   \n",
       "27              E  Cooling Tower Health >> North America >> 2 >> E   \n",
       "28              D  Cooling Tower Health >> North America >> 2 >> D   \n",
       "29              D  Cooling Tower Health >> North America >> 2 >> D   \n",
       "30              D  Cooling Tower Health >> North America >> 2 >> D   \n",
       "31              2       Cooling Tower Health >> North America >> 2   \n",
       "32  North America            Cooling Tower Health >> North America   \n",
       "33            NaN                                              NaN   \n",
       "34            NaN                                              NaN   \n",
       "\n",
       "   Build Result                                           Formula  \\\n",
       "0       Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "1       Success                                               NaN   \n",
       "2       Success                                               NaN   \n",
       "3       Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "4       Success                                               NaN   \n",
       "5       Success                                               NaN   \n",
       "6       Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "7       Success                                               NaN   \n",
       "8       Success                                               NaN   \n",
       "9       Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "10      Success                                               NaN   \n",
       "11      Success                                               NaN   \n",
       "12      Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "13      Success                                               NaN   \n",
       "14      Success                                               NaN   \n",
       "15      Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "16      Success                                               NaN   \n",
       "17      Success                                               NaN   \n",
       "18      Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "19      Success                                               NaN   \n",
       "20      Success                                               NaN   \n",
       "21      Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "22      Success                                               NaN   \n",
       "23      Success                                               NaN   \n",
       "24      Success                                               NaN   \n",
       "25      Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "26      Success                                               NaN   \n",
       "27      Success                                               NaN   \n",
       "28      Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "29      Success                                               NaN   \n",
       "30      Success                                               NaN   \n",
       "31      Success                                               NaN   \n",
       "32      Success                                               NaN   \n",
       "33          NaN                                               NaN   \n",
       "34          NaN                                               NaN   \n",
       "\n",
       "   Formula Parameters                                      Measured Item  \\\n",
       "0      {'$a': ['ID']}                                                NaN   \n",
       "1                 NaN  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "2                 NaN                                                NaN   \n",
       "3      {'$a': ['ID']}                                                NaN   \n",
       "4                 NaN  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "5                 NaN                                                NaN   \n",
       "6      {'$a': ['ID']}                                                NaN   \n",
       "7                 NaN  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "8                 NaN                                                NaN   \n",
       "9      {'$a': ['ID']}                                                NaN   \n",
       "10                NaN  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "11                NaN                                                NaN   \n",
       "12     {'$a': ['ID']}                                                NaN   \n",
       "13                NaN  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "14                NaN                                                NaN   \n",
       "15     {'$a': ['ID']}                                                NaN   \n",
       "16                NaN  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "17                NaN                                                NaN   \n",
       "18     {'$a': ['ID']}                                                NaN   \n",
       "19                NaN  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "20                NaN                                                NaN   \n",
       "21     {'$a': ['ID']}                                                NaN   \n",
       "22                NaN  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "23                NaN                                                NaN   \n",
       "24                NaN                                                NaN   \n",
       "25     {'$a': ['ID']}                                                NaN   \n",
       "26                NaN  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "27                NaN                                                NaN   \n",
       "28     {'$a': ['ID']}                                                NaN   \n",
       "29                NaN  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "30                NaN                                                NaN   \n",
       "31                NaN                                                NaN   \n",
       "32                NaN                                                NaN   \n",
       "33                NaN                                                NaN   \n",
       "34                NaN                                                NaN   \n",
       "\n",
       "   Measured Item Maximum Duration            Name  \\\n",
       "0                             NaN       Incidents   \n",
       "1                             40d  Incident Count   \n",
       "2                             NaN               C   \n",
       "3                             NaN       Incidents   \n",
       "4                             40d  Incident Count   \n",
       "5                             NaN               I   \n",
       "6                             NaN       Incidents   \n",
       "7                             40d  Incident Count   \n",
       "8                             NaN               G   \n",
       "9                             NaN       Incidents   \n",
       "10                            40d  Incident Count   \n",
       "11                            NaN               B   \n",
       "12                            NaN       Incidents   \n",
       "13                            40d  Incident Count   \n",
       "14                            NaN               J   \n",
       "15                            NaN       Incidents   \n",
       "16                            40d  Incident Count   \n",
       "17                            NaN               K   \n",
       "18                            NaN       Incidents   \n",
       "19                            40d  Incident Count   \n",
       "20                            NaN               H   \n",
       "21                            NaN       Incidents   \n",
       "22                            40d  Incident Count   \n",
       "23                            NaN               A   \n",
       "24                            NaN               1   \n",
       "25                            NaN       Incidents   \n",
       "26                            40d  Incident Count   \n",
       "27                            NaN               E   \n",
       "28                            NaN       Incidents   \n",
       "29                            40d  Incident Count   \n",
       "30                            NaN               D   \n",
       "31                            NaN               2   \n",
       "32                            NaN   North America   \n",
       "33                            NaN            None   \n",
       "34                            NaN            None   \n",
       "\n",
       "                                               Object  \\\n",
       "0                                                 NaN   \n",
       "1                                                 NaN   \n",
       "2                                                 NaN   \n",
       "3                                                 NaN   \n",
       "4                                                 NaN   \n",
       "5                                                 NaN   \n",
       "6                                                 NaN   \n",
       "7                                                 NaN   \n",
       "8                                                 NaN   \n",
       "9                                                 NaN   \n",
       "10                                                NaN   \n",
       "11                                                NaN   \n",
       "12                                                NaN   \n",
       "13                                                NaN   \n",
       "14                                                NaN   \n",
       "15                                                NaN   \n",
       "16                                                NaN   \n",
       "17                                                NaN   \n",
       "18                                                NaN   \n",
       "19                                                NaN   \n",
       "20                                                NaN   \n",
       "21                                                NaN   \n",
       "22                                                NaN   \n",
       "23                                                NaN   \n",
       "24                                                NaN   \n",
       "25                                                NaN   \n",
       "26                                                NaN   \n",
       "27                                                NaN   \n",
       "28                                                NaN   \n",
       "29                                                NaN   \n",
       "30                                                NaN   \n",
       "31                                                NaN   \n",
       "32                                                NaN   \n",
       "33  Workbook \"None\" (AECCA193-1841-464B-A611-AFE36...   \n",
       "34  Workbook \"None\" (ADFFD3C2-ACBE-4A45-8EB9-87FF2...   \n",
       "\n",
       "                                          Path Statistic       Template  \\\n",
       "0   Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "1   Cooling Tower Health >> North America >> 1     count           Area   \n",
       "2   Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "3   Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "4   Cooling Tower Health >> North America >> 1     count           Area   \n",
       "5   Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "6   Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "7   Cooling Tower Health >> North America >> 1     count           Area   \n",
       "8   Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "9   Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "10  Cooling Tower Health >> North America >> 1     count           Area   \n",
       "11  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "12  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "13  Cooling Tower Health >> North America >> 1     count           Area   \n",
       "14  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "15  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "16  Cooling Tower Health >> North America >> 1     count           Area   \n",
       "17  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "18  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "19  Cooling Tower Health >> North America >> 1     count           Area   \n",
       "20  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "21  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "22  Cooling Tower Health >> North America >> 1     count           Area   \n",
       "23  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "24       Cooling Tower Health >> North America       NaN  Cooling Tower   \n",
       "25  Cooling Tower Health >> North America >> 2       NaN           Area   \n",
       "26  Cooling Tower Health >> North America >> 2     count           Area   \n",
       "27  Cooling Tower Health >> North America >> 2       NaN           Area   \n",
       "28  Cooling Tower Health >> North America >> 2       NaN           Area   \n",
       "29  Cooling Tower Health >> North America >> 2     count           Area   \n",
       "30  Cooling Tower Health >> North America >> 2       NaN           Area   \n",
       "31       Cooling Tower Health >> North America       NaN  Cooling Tower   \n",
       "32                        Cooling Tower Health       NaN         Region   \n",
       "33                                         NaN       NaN            NaN   \n",
       "34                                         NaN       NaN            NaN   \n",
       "\n",
       "                  Thresholds       Type Workbook Type  \n",
       "0                        NaN  Condition           NaN  \n",
       "1   {'HiHiHi': 1, 'HiHi': 0}     Metric           NaN  \n",
       "2                        NaN      Asset           NaN  \n",
       "3                        NaN  Condition           NaN  \n",
       "4   {'HiHiHi': 1, 'HiHi': 0}     Metric           NaN  \n",
       "5                        NaN      Asset           NaN  \n",
       "6                        NaN  Condition           NaN  \n",
       "7   {'HiHiHi': 1, 'HiHi': 0}     Metric           NaN  \n",
       "8                        NaN      Asset           NaN  \n",
       "9                        NaN  Condition           NaN  \n",
       "10  {'HiHiHi': 1, 'HiHi': 0}     Metric           NaN  \n",
       "11                       NaN      Asset           NaN  \n",
       "12                       NaN  Condition           NaN  \n",
       "13  {'HiHiHi': 1, 'HiHi': 0}     Metric           NaN  \n",
       "14                       NaN      Asset           NaN  \n",
       "15                       NaN  Condition           NaN  \n",
       "16  {'HiHiHi': 1, 'HiHi': 0}     Metric           NaN  \n",
       "17                       NaN      Asset           NaN  \n",
       "18                       NaN  Condition           NaN  \n",
       "19  {'HiHiHi': 1, 'HiHi': 0}     Metric           NaN  \n",
       "20                       NaN      Asset           NaN  \n",
       "21                       NaN  Condition           NaN  \n",
       "22  {'HiHiHi': 1, 'HiHi': 0}     Metric           NaN  \n",
       "23                       NaN      Asset           NaN  \n",
       "24                       NaN      Asset           NaN  \n",
       "25                       NaN  Condition           NaN  \n",
       "26  {'HiHiHi': 1, 'HiHi': 0}     Metric           NaN  \n",
       "27                       NaN      Asset           NaN  \n",
       "28                       NaN  Condition           NaN  \n",
       "29  {'HiHiHi': 1, 'HiHi': 0}     Metric           NaN  \n",
       "30                       NaN      Asset           NaN  \n",
       "31                       NaN      Asset           NaN  \n",
       "32                       NaN      Asset           NaN  \n",
       "33                       NaN   Workbook      Analysis  \n",
       "34                       NaN   Workbook         Topic  "
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "build_df = spy.assets.build(Region, metadata_df)\n",
    "build_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div style=\"background-color: #EEFFEE;text-align: left;\">Pushed successfully to datasource <strong>Seeq Data Lab [Seeq Data Lab]</strong> and scoped to workbook ID <strong>B15567E0-C146-48F4-B7E2-A1ABBB58FBB0</strong><br>Click the following link to see what you pushed in Seeq:<br><a href=\"http://localhost:34216/E6BA75AE-9152-4F2C-9523-7236E550623B/workbook/B15567E0-C146-48F4-B7E2-A1ABBB58FBB0/worksheet/50791FA8-4FA1-4A04-890D-0AD588562D89\" target=\"_new\">http://localhost:34216/E6BA75AE-9152-4F2C-9523-7236E550623B/workbook/B15567E0-C146-48F4-B7E2-A1ABBB58FBB0/worksheet/50791FA8-4FA1-4A04-890D-0AD588562D89</a></div><table><tr><td style=\"background-color: #EEFFEE;\"></td><td style=\"background-color: #EEFFEE;\">Asset</td><td style=\"background-color: #EEFFEE;\">Condition</td><td style=\"background-color: #EEFFEE;\">Overall</td><td style=\"background-color: #EEFFEE;\">Relationship</td><td style=\"background-color: #EEFFEE;\">Scalar</td><td style=\"background-color: #EEFFEE;\">Signal</td><td style=\"background-color: #EEFFEE;\">Threshold Metric</td></tr><tr style=\"background-color: #EEFFEE;\"><td>Items pushed</td><td>14</td><td>10</td><td>43</td><td>33</td><td>0</td><td>0</td><td>10</td></tr></table>"
      ],
      "text/plain": [
       "<IPython.core.display.HTML object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Asset</th>\n",
       "      <th>Asset Object</th>\n",
       "      <th>Build Result</th>\n",
       "      <th>Formula</th>\n",
       "      <th>Formula Parameters</th>\n",
       "      <th>Measured Item</th>\n",
       "      <th>Measured Item Maximum Duration</th>\n",
       "      <th>Name</th>\n",
       "      <th>Object</th>\n",
       "      <th>Path</th>\n",
       "      <th>Statistic</th>\n",
       "      <th>Template</th>\n",
       "      <th>Thresholds</th>\n",
       "      <th>Type</th>\n",
       "      <th>Workbook Type</th>\n",
       "      <th>Datasource Class</th>\n",
       "      <th>Datasource ID</th>\n",
       "      <th>Data ID</th>\n",
       "      <th>ID</th>\n",
       "      <th>Push Result</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>C</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; C</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>[a=1CBC2C96-A305-4D9E-BAA8-0CBF269C3726]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>CalculatedCondition</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...</td>\n",
       "      <td>DB04CB0E-2E3E-4E9C-B2B1-32B8E591906D</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>C</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; C</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>ThresholdMetric</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...</td>\n",
       "      <td>889FCAEC-26B1-4919-80A4-6B32D0514931</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>C</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; C</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>C</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...</td>\n",
       "      <td>206EA1CB-3644-47AB-B7EE-240F225B3107</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>I</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; I</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>[a=AA6599FA-BA60-433E-A2CA-459341F66D5C]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>CalculatedCondition</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...</td>\n",
       "      <td>4B2F1252-0485-43D3-912F-B81928F161DE</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>I</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; I</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>ThresholdMetric</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...</td>\n",
       "      <td>B5E155F5-266B-47BE-9C27-6D8AE7422A63</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>I</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; I</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>I</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...</td>\n",
       "      <td>0696873B-4936-4F99-9077-D17F9BF6308F</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>G</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; G</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>[a=0F6F884A-C4AE-47D2-AF90-D09F9B40E5F1]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>CalculatedCondition</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...</td>\n",
       "      <td>9E72AC6B-C2AC-4EE2-A1F5-47E3F33B99A2</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>G</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; G</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>ThresholdMetric</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...</td>\n",
       "      <td>310C0814-B8A4-479D-BACA-CBBF8CA6F528</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>G</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; G</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>G</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...</td>\n",
       "      <td>5058FF61-FAB5-4478-AC2C-34C755F1C1E1</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; B</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>[a=D397B18E-E93C-4481-B035-1704BA7DF893]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>CalculatedCondition</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...</td>\n",
       "      <td>947C8F9F-03BD-44FA-92F3-F10F09EEAA62</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; B</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>ThresholdMetric</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...</td>\n",
       "      <td>AE2D4B2A-937A-4087-AE58-D5D32B960137</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; B</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>B</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...</td>\n",
       "      <td>032C0AAA-A697-47FE-A7C2-D1167EE45A41</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>J</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; J</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>[a=F9F8F062-97D4-4D99-9B18-5EFB6F1C2243]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>CalculatedCondition</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...</td>\n",
       "      <td>85BB1CE6-C54F-4420-913F-8A6EA0740905</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>J</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; J</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>ThresholdMetric</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...</td>\n",
       "      <td>4B9CBAD3-C063-49E3-89DD-0E6453EBAD0A</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>J</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; J</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>J</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...</td>\n",
       "      <td>BF4D4BAD-E522-477B-880B-D26370DC1D17</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>K</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; K</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>[a=0A0D4C30-49B1-49CD-BFF3-00669E53FBFD]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>CalculatedCondition</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...</td>\n",
       "      <td>82F2306E-490E-4C59-8932-B412AC5E9FDD</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>K</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; K</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>ThresholdMetric</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...</td>\n",
       "      <td>031CCE5A-27A7-4998-95E3-1A9A5731CA18</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>K</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; K</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>K</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...</td>\n",
       "      <td>930AB161-3FCB-4CC7-8B11-C952188F240C</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>H</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; H</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>[a=C63DCBDC-6DFE-42AE-BD56-3EA290E20C5B]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>CalculatedCondition</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...</td>\n",
       "      <td>268A25F9-3C66-45CE-84B3-754E6086DC23</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>H</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; H</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>ThresholdMetric</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...</td>\n",
       "      <td>3C6070FA-A696-4140-BBCD-37E7C040F890</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>H</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; H</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>H</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...</td>\n",
       "      <td>6183B96E-03DB-4FCC-94B6-070EEFAB55E9</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>A</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; A</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>[a=683778EC-678A-4FC4-BBCA-B835D180B042]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>CalculatedCondition</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...</td>\n",
       "      <td>8498FEC6-A424-4C30-8A4B-6D170F91572B</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>A</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; A</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>ThresholdMetric</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...</td>\n",
       "      <td>F2824846-21C3-462C-8BBE-E723F872A1F3</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>A</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1 &gt;&gt; A</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>A</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...</td>\n",
       "      <td>182AA3B0-8C51-47BB-9377-07E54E062B0F</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 1</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...</td>\n",
       "      <td>3B1FDA72-D54C-4E8D-BC05-2E6E9CB874E0</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>E</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2 &gt;&gt; E</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>[a=027A1C73-4564-40C2-98CE-16A0A93EFE66]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>CalculatedCondition</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...</td>\n",
       "      <td>79EBCFCD-72A4-411E-94EC-1D5FB5C9491E</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>E</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2 &gt;&gt; E</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>ThresholdMetric</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...</td>\n",
       "      <td>CDA72A29-4F2D-48F6-A6DD-F94D0C941C25</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>E</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2 &gt;&gt; E</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>E</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...</td>\n",
       "      <td>457DCA6B-383D-4D03-BA36-3D6FCF6BAADF</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>D</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2 &gt;&gt; D</td>\n",
       "      <td>Success</td>\n",
       "      <td>$a.validValues().valueSearch(isGreaterThan(120))</td>\n",
       "      <td>[a=5B72793B-9680-4B98-BBF0-CEF12343261E]</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Incidents</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>CalculatedCondition</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...</td>\n",
       "      <td>DDC798CF-ADFE-408C-9860-C4DB5C11F246</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>D</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2 &gt;&gt; D</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'Type': 'Condition', 'Formula': '$a.validValu...</td>\n",
       "      <td>40d</td>\n",
       "      <td>Incident Count</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2</td>\n",
       "      <td>count</td>\n",
       "      <td>Area</td>\n",
       "      <td>{'HiHiHi': 1, 'HiHi': 0}</td>\n",
       "      <td>ThresholdMetric</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...</td>\n",
       "      <td>C11239C1-2381-4EC3-906C-2641C14B8C28</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>D</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2 &gt;&gt; D</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>D</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Area</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...</td>\n",
       "      <td>C08CA457-EE9A-42D4-B8C4-D45F0239964B</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>2</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America &gt;&gt; 2</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...</td>\n",
       "      <td>4773046A-4437-404E-A59C-4F8A021E4552</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>North America</td>\n",
       "      <td>Cooling Tower Health &gt;&gt; North America</td>\n",
       "      <td>Success</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>North America</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Cooling Tower Health</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Region</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Asset</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>Seeq Data Lab</td>\n",
       "      <td>[B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...</td>\n",
       "      <td>0C4AA0CE-6C64-4AD5-B99C-B601E37190DD</td>\n",
       "      <td>Success</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            Asset                                     Asset Object  \\\n",
       "0               C  Cooling Tower Health >> North America >> 1 >> C   \n",
       "1               C  Cooling Tower Health >> North America >> 1 >> C   \n",
       "2               C  Cooling Tower Health >> North America >> 1 >> C   \n",
       "3               I  Cooling Tower Health >> North America >> 1 >> I   \n",
       "4               I  Cooling Tower Health >> North America >> 1 >> I   \n",
       "5               I  Cooling Tower Health >> North America >> 1 >> I   \n",
       "6               G  Cooling Tower Health >> North America >> 1 >> G   \n",
       "7               G  Cooling Tower Health >> North America >> 1 >> G   \n",
       "8               G  Cooling Tower Health >> North America >> 1 >> G   \n",
       "9               B  Cooling Tower Health >> North America >> 1 >> B   \n",
       "10              B  Cooling Tower Health >> North America >> 1 >> B   \n",
       "11              B  Cooling Tower Health >> North America >> 1 >> B   \n",
       "12              J  Cooling Tower Health >> North America >> 1 >> J   \n",
       "13              J  Cooling Tower Health >> North America >> 1 >> J   \n",
       "14              J  Cooling Tower Health >> North America >> 1 >> J   \n",
       "15              K  Cooling Tower Health >> North America >> 1 >> K   \n",
       "16              K  Cooling Tower Health >> North America >> 1 >> K   \n",
       "17              K  Cooling Tower Health >> North America >> 1 >> K   \n",
       "18              H  Cooling Tower Health >> North America >> 1 >> H   \n",
       "19              H  Cooling Tower Health >> North America >> 1 >> H   \n",
       "20              H  Cooling Tower Health >> North America >> 1 >> H   \n",
       "21              A  Cooling Tower Health >> North America >> 1 >> A   \n",
       "22              A  Cooling Tower Health >> North America >> 1 >> A   \n",
       "23              A  Cooling Tower Health >> North America >> 1 >> A   \n",
       "24              1       Cooling Tower Health >> North America >> 1   \n",
       "25              E  Cooling Tower Health >> North America >> 2 >> E   \n",
       "26              E  Cooling Tower Health >> North America >> 2 >> E   \n",
       "27              E  Cooling Tower Health >> North America >> 2 >> E   \n",
       "28              D  Cooling Tower Health >> North America >> 2 >> D   \n",
       "29              D  Cooling Tower Health >> North America >> 2 >> D   \n",
       "30              D  Cooling Tower Health >> North America >> 2 >> D   \n",
       "31              2       Cooling Tower Health >> North America >> 2   \n",
       "32  North America            Cooling Tower Health >> North America   \n",
       "\n",
       "   Build Result                                           Formula  \\\n",
       "0       Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "1       Success                                               NaN   \n",
       "2       Success                                               NaN   \n",
       "3       Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "4       Success                                               NaN   \n",
       "5       Success                                               NaN   \n",
       "6       Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "7       Success                                               NaN   \n",
       "8       Success                                               NaN   \n",
       "9       Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "10      Success                                               NaN   \n",
       "11      Success                                               NaN   \n",
       "12      Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "13      Success                                               NaN   \n",
       "14      Success                                               NaN   \n",
       "15      Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "16      Success                                               NaN   \n",
       "17      Success                                               NaN   \n",
       "18      Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "19      Success                                               NaN   \n",
       "20      Success                                               NaN   \n",
       "21      Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "22      Success                                               NaN   \n",
       "23      Success                                               NaN   \n",
       "24      Success                                               NaN   \n",
       "25      Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "26      Success                                               NaN   \n",
       "27      Success                                               NaN   \n",
       "28      Success  $a.validValues().valueSearch(isGreaterThan(120))   \n",
       "29      Success                                               NaN   \n",
       "30      Success                                               NaN   \n",
       "31      Success                                               NaN   \n",
       "32      Success                                               NaN   \n",
       "\n",
       "                          Formula Parameters  \\\n",
       "0   [a=1CBC2C96-A305-4D9E-BAA8-0CBF269C3726]   \n",
       "1                                        NaN   \n",
       "2                                        NaN   \n",
       "3   [a=AA6599FA-BA60-433E-A2CA-459341F66D5C]   \n",
       "4                                        NaN   \n",
       "5                                        NaN   \n",
       "6   [a=0F6F884A-C4AE-47D2-AF90-D09F9B40E5F1]   \n",
       "7                                        NaN   \n",
       "8                                        NaN   \n",
       "9   [a=D397B18E-E93C-4481-B035-1704BA7DF893]   \n",
       "10                                       NaN   \n",
       "11                                       NaN   \n",
       "12  [a=F9F8F062-97D4-4D99-9B18-5EFB6F1C2243]   \n",
       "13                                       NaN   \n",
       "14                                       NaN   \n",
       "15  [a=0A0D4C30-49B1-49CD-BFF3-00669E53FBFD]   \n",
       "16                                       NaN   \n",
       "17                                       NaN   \n",
       "18  [a=C63DCBDC-6DFE-42AE-BD56-3EA290E20C5B]   \n",
       "19                                       NaN   \n",
       "20                                       NaN   \n",
       "21  [a=683778EC-678A-4FC4-BBCA-B835D180B042]   \n",
       "22                                       NaN   \n",
       "23                                       NaN   \n",
       "24                                       NaN   \n",
       "25  [a=027A1C73-4564-40C2-98CE-16A0A93EFE66]   \n",
       "26                                       NaN   \n",
       "27                                       NaN   \n",
       "28  [a=5B72793B-9680-4B98-BBF0-CEF12343261E]   \n",
       "29                                       NaN   \n",
       "30                                       NaN   \n",
       "31                                       NaN   \n",
       "32                                       NaN   \n",
       "\n",
       "                                        Measured Item  \\\n",
       "0                                                 NaN   \n",
       "1   {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "2                                                 NaN   \n",
       "3                                                 NaN   \n",
       "4   {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "5                                                 NaN   \n",
       "6                                                 NaN   \n",
       "7   {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "8                                                 NaN   \n",
       "9                                                 NaN   \n",
       "10  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "11                                                NaN   \n",
       "12                                                NaN   \n",
       "13  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "14                                                NaN   \n",
       "15                                                NaN   \n",
       "16  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "17                                                NaN   \n",
       "18                                                NaN   \n",
       "19  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "20                                                NaN   \n",
       "21                                                NaN   \n",
       "22  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "23                                                NaN   \n",
       "24                                                NaN   \n",
       "25                                                NaN   \n",
       "26  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "27                                                NaN   \n",
       "28                                                NaN   \n",
       "29  {'Type': 'Condition', 'Formula': '$a.validValu...   \n",
       "30                                                NaN   \n",
       "31                                                NaN   \n",
       "32                                                NaN   \n",
       "\n",
       "   Measured Item Maximum Duration            Name Object  \\\n",
       "0                             NaN       Incidents    NaN   \n",
       "1                             40d  Incident Count    NaN   \n",
       "2                             NaN               C    NaN   \n",
       "3                             NaN       Incidents    NaN   \n",
       "4                             40d  Incident Count    NaN   \n",
       "5                             NaN               I    NaN   \n",
       "6                             NaN       Incidents    NaN   \n",
       "7                             40d  Incident Count    NaN   \n",
       "8                             NaN               G    NaN   \n",
       "9                             NaN       Incidents    NaN   \n",
       "10                            40d  Incident Count    NaN   \n",
       "11                            NaN               B    NaN   \n",
       "12                            NaN       Incidents    NaN   \n",
       "13                            40d  Incident Count    NaN   \n",
       "14                            NaN               J    NaN   \n",
       "15                            NaN       Incidents    NaN   \n",
       "16                            40d  Incident Count    NaN   \n",
       "17                            NaN               K    NaN   \n",
       "18                            NaN       Incidents    NaN   \n",
       "19                            40d  Incident Count    NaN   \n",
       "20                            NaN               H    NaN   \n",
       "21                            NaN       Incidents    NaN   \n",
       "22                            40d  Incident Count    NaN   \n",
       "23                            NaN               A    NaN   \n",
       "24                            NaN               1    NaN   \n",
       "25                            NaN       Incidents    NaN   \n",
       "26                            40d  Incident Count    NaN   \n",
       "27                            NaN               E    NaN   \n",
       "28                            NaN       Incidents    NaN   \n",
       "29                            40d  Incident Count    NaN   \n",
       "30                            NaN               D    NaN   \n",
       "31                            NaN               2    NaN   \n",
       "32                            NaN   North America    NaN   \n",
       "\n",
       "                                          Path Statistic       Template  \\\n",
       "0   Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "1   Cooling Tower Health >> North America >> 1     count           Area   \n",
       "2   Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "3   Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "4   Cooling Tower Health >> North America >> 1     count           Area   \n",
       "5   Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "6   Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "7   Cooling Tower Health >> North America >> 1     count           Area   \n",
       "8   Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "9   Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "10  Cooling Tower Health >> North America >> 1     count           Area   \n",
       "11  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "12  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "13  Cooling Tower Health >> North America >> 1     count           Area   \n",
       "14  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "15  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "16  Cooling Tower Health >> North America >> 1     count           Area   \n",
       "17  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "18  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "19  Cooling Tower Health >> North America >> 1     count           Area   \n",
       "20  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "21  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "22  Cooling Tower Health >> North America >> 1     count           Area   \n",
       "23  Cooling Tower Health >> North America >> 1       NaN           Area   \n",
       "24       Cooling Tower Health >> North America       NaN  Cooling Tower   \n",
       "25  Cooling Tower Health >> North America >> 2       NaN           Area   \n",
       "26  Cooling Tower Health >> North America >> 2     count           Area   \n",
       "27  Cooling Tower Health >> North America >> 2       NaN           Area   \n",
       "28  Cooling Tower Health >> North America >> 2       NaN           Area   \n",
       "29  Cooling Tower Health >> North America >> 2     count           Area   \n",
       "30  Cooling Tower Health >> North America >> 2       NaN           Area   \n",
       "31       Cooling Tower Health >> North America       NaN  Cooling Tower   \n",
       "32                        Cooling Tower Health       NaN         Region   \n",
       "\n",
       "                  Thresholds                 Type Workbook Type  \\\n",
       "0                        NaN  CalculatedCondition           NaN   \n",
       "1   {'HiHiHi': 1, 'HiHi': 0}      ThresholdMetric           NaN   \n",
       "2                        NaN                Asset           NaN   \n",
       "3                        NaN  CalculatedCondition           NaN   \n",
       "4   {'HiHiHi': 1, 'HiHi': 0}      ThresholdMetric           NaN   \n",
       "5                        NaN                Asset           NaN   \n",
       "6                        NaN  CalculatedCondition           NaN   \n",
       "7   {'HiHiHi': 1, 'HiHi': 0}      ThresholdMetric           NaN   \n",
       "8                        NaN                Asset           NaN   \n",
       "9                        NaN  CalculatedCondition           NaN   \n",
       "10  {'HiHiHi': 1, 'HiHi': 0}      ThresholdMetric           NaN   \n",
       "11                       NaN                Asset           NaN   \n",
       "12                       NaN  CalculatedCondition           NaN   \n",
       "13  {'HiHiHi': 1, 'HiHi': 0}      ThresholdMetric           NaN   \n",
       "14                       NaN                Asset           NaN   \n",
       "15                       NaN  CalculatedCondition           NaN   \n",
       "16  {'HiHiHi': 1, 'HiHi': 0}      ThresholdMetric           NaN   \n",
       "17                       NaN                Asset           NaN   \n",
       "18                       NaN  CalculatedCondition           NaN   \n",
       "19  {'HiHiHi': 1, 'HiHi': 0}      ThresholdMetric           NaN   \n",
       "20                       NaN                Asset           NaN   \n",
       "21                       NaN  CalculatedCondition           NaN   \n",
       "22  {'HiHiHi': 1, 'HiHi': 0}      ThresholdMetric           NaN   \n",
       "23                       NaN                Asset           NaN   \n",
       "24                       NaN                Asset           NaN   \n",
       "25                       NaN  CalculatedCondition           NaN   \n",
       "26  {'HiHiHi': 1, 'HiHi': 0}      ThresholdMetric           NaN   \n",
       "27                       NaN                Asset           NaN   \n",
       "28                       NaN  CalculatedCondition           NaN   \n",
       "29  {'HiHiHi': 1, 'HiHi': 0}      ThresholdMetric           NaN   \n",
       "30                       NaN                Asset           NaN   \n",
       "31                       NaN                Asset           NaN   \n",
       "32                       NaN                Asset           NaN   \n",
       "\n",
       "   Datasource Class  Datasource ID  \\\n",
       "0     Seeq Data Lab  Seeq Data Lab   \n",
       "1     Seeq Data Lab  Seeq Data Lab   \n",
       "2     Seeq Data Lab  Seeq Data Lab   \n",
       "3     Seeq Data Lab  Seeq Data Lab   \n",
       "4     Seeq Data Lab  Seeq Data Lab   \n",
       "5     Seeq Data Lab  Seeq Data Lab   \n",
       "6     Seeq Data Lab  Seeq Data Lab   \n",
       "7     Seeq Data Lab  Seeq Data Lab   \n",
       "8     Seeq Data Lab  Seeq Data Lab   \n",
       "9     Seeq Data Lab  Seeq Data Lab   \n",
       "10    Seeq Data Lab  Seeq Data Lab   \n",
       "11    Seeq Data Lab  Seeq Data Lab   \n",
       "12    Seeq Data Lab  Seeq Data Lab   \n",
       "13    Seeq Data Lab  Seeq Data Lab   \n",
       "14    Seeq Data Lab  Seeq Data Lab   \n",
       "15    Seeq Data Lab  Seeq Data Lab   \n",
       "16    Seeq Data Lab  Seeq Data Lab   \n",
       "17    Seeq Data Lab  Seeq Data Lab   \n",
       "18    Seeq Data Lab  Seeq Data Lab   \n",
       "19    Seeq Data Lab  Seeq Data Lab   \n",
       "20    Seeq Data Lab  Seeq Data Lab   \n",
       "21    Seeq Data Lab  Seeq Data Lab   \n",
       "22    Seeq Data Lab  Seeq Data Lab   \n",
       "23    Seeq Data Lab  Seeq Data Lab   \n",
       "24    Seeq Data Lab  Seeq Data Lab   \n",
       "25    Seeq Data Lab  Seeq Data Lab   \n",
       "26    Seeq Data Lab  Seeq Data Lab   \n",
       "27    Seeq Data Lab  Seeq Data Lab   \n",
       "28    Seeq Data Lab  Seeq Data Lab   \n",
       "29    Seeq Data Lab  Seeq Data Lab   \n",
       "30    Seeq Data Lab  Seeq Data Lab   \n",
       "31    Seeq Data Lab  Seeq Data Lab   \n",
       "32    Seeq Data Lab  Seeq Data Lab   \n",
       "\n",
       "                                              Data ID  \\\n",
       "0   [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...   \n",
       "1   [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...   \n",
       "2   [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...   \n",
       "3   [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...   \n",
       "4   [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...   \n",
       "5   [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...   \n",
       "6   [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...   \n",
       "7   [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...   \n",
       "8   [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...   \n",
       "9   [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...   \n",
       "10  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...   \n",
       "11  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...   \n",
       "12  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...   \n",
       "13  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...   \n",
       "14  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...   \n",
       "15  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...   \n",
       "16  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...   \n",
       "17  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...   \n",
       "18  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...   \n",
       "19  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...   \n",
       "20  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...   \n",
       "21  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...   \n",
       "22  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...   \n",
       "23  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...   \n",
       "24  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...   \n",
       "25  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...   \n",
       "26  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...   \n",
       "27  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...   \n",
       "28  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Condit...   \n",
       "29  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Metric...   \n",
       "30  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...   \n",
       "31  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...   \n",
       "32  [B15567E0-C146-48F4-B7E2-A1ABBB58FBB0] {Asset}...   \n",
       "\n",
       "                                      ID Push Result  \n",
       "0   DB04CB0E-2E3E-4E9C-B2B1-32B8E591906D     Success  \n",
       "1   889FCAEC-26B1-4919-80A4-6B32D0514931     Success  \n",
       "2   206EA1CB-3644-47AB-B7EE-240F225B3107     Success  \n",
       "3   4B2F1252-0485-43D3-912F-B81928F161DE     Success  \n",
       "4   B5E155F5-266B-47BE-9C27-6D8AE7422A63     Success  \n",
       "5   0696873B-4936-4F99-9077-D17F9BF6308F     Success  \n",
       "6   9E72AC6B-C2AC-4EE2-A1F5-47E3F33B99A2     Success  \n",
       "7   310C0814-B8A4-479D-BACA-CBBF8CA6F528     Success  \n",
       "8   5058FF61-FAB5-4478-AC2C-34C755F1C1E1     Success  \n",
       "9   947C8F9F-03BD-44FA-92F3-F10F09EEAA62     Success  \n",
       "10  AE2D4B2A-937A-4087-AE58-D5D32B960137     Success  \n",
       "11  032C0AAA-A697-47FE-A7C2-D1167EE45A41     Success  \n",
       "12  85BB1CE6-C54F-4420-913F-8A6EA0740905     Success  \n",
       "13  4B9CBAD3-C063-49E3-89DD-0E6453EBAD0A     Success  \n",
       "14  BF4D4BAD-E522-477B-880B-D26370DC1D17     Success  \n",
       "15  82F2306E-490E-4C59-8932-B412AC5E9FDD     Success  \n",
       "16  031CCE5A-27A7-4998-95E3-1A9A5731CA18     Success  \n",
       "17  930AB161-3FCB-4CC7-8B11-C952188F240C     Success  \n",
       "18  268A25F9-3C66-45CE-84B3-754E6086DC23     Success  \n",
       "19  3C6070FA-A696-4140-BBCD-37E7C040F890     Success  \n",
       "20  6183B96E-03DB-4FCC-94B6-070EEFAB55E9     Success  \n",
       "21  8498FEC6-A424-4C30-8A4B-6D170F91572B     Success  \n",
       "22  F2824846-21C3-462C-8BBE-E723F872A1F3     Success  \n",
       "23  182AA3B0-8C51-47BB-9377-07E54E062B0F     Success  \n",
       "24  3B1FDA72-D54C-4E8D-BC05-2E6E9CB874E0     Success  \n",
       "25  79EBCFCD-72A4-411E-94EC-1D5FB5C9491E     Success  \n",
       "26  CDA72A29-4F2D-48F6-A6DD-F94D0C941C25     Success  \n",
       "27  457DCA6B-383D-4D03-BA36-3D6FCF6BAADF     Success  \n",
       "28  DDC798CF-ADFE-408C-9860-C4DB5C11F246     Success  \n",
       "29  C11239C1-2381-4EC3-906C-2641C14B8C28     Success  \n",
       "30  C08CA457-EE9A-42D4-B8C4-D45F0239964B     Success  \n",
       "31  4773046A-4437-404E-A59C-4F8A021E4552     Success  \n",
       "32  0C4AA0CE-6C64-4AD5-B99C-B601E37190DD     Success  "
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "spy.push(metadata=build_df)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
