| Function | ArcGIS Online | ArcGIS Enterprise |
|---|---|---|
| collaborations | X | X |
| credits | X | |
| federation | X | |
| license | X | X |
| logs | X | |
| machines | X | |
| metadata | X | X |
| password_policy | X | X |
| security | X | |
| server | X | |
| site | X | |
| system | X | |
| ux | X | X |
Note: You need to log in using a named user account with administrator privileges. When you login, the API detects if you are an organizational administrator, then, the GIS object will ensure you gain access to the admin module.\n"]}, {"cell_type": "markdown", "metadata": {}, "source": ["**Table of Contents**\n", " - [Managing named user licenses and entitlements](#Managing-named-user-licenses-and-entitlements)\n", " - [Listing apps licensed through the organization](#Listing-apps-licensed-through-the-organization)\n", " - [Getting available licenses for an app](#Getting-available-licenses-for-an-app)\n", " - [Querying extensions assigned to a named user account](#Querying-extensions-assigned-to-a-named-user-account)\n", " - [Assigning licenses and entitlements to a named user account](#Assigning-licenses-and-entitlements-to-a-named-user-account)\n", " - [Revoking licenses from a named user account](#Revoking-licenses-from-a-named-used-account)\n", " - [Managing ArcGIS Online credits](#Managing-ArcGIS-Online-credits)\n", " - [Viewing available credits](#Viewing-available-credits:)\n", " - [Managing credits through credit budgeting](#Managing-credits-through-credit-budgeting)\n", " - [Allocating credits to a user](#Allocating-credits-to-a-user)\n", " - [Checking credits assigned and available to a user](#Checking-credits-assigned-and-available-to-a-user)\n", " - [Attaching and removing servers from your GIS](#Attaching-and-removing-ArcGIS-Servers-from-your-GIS)\n", " - [Validating your servers](#Validating-your-servers)\n", " - [Unfederating a server](#Unfederating-a-server)\n", " - [Querying Portal logs](#Querying-Portal-logs)\n", " - [Filtering and querying Portal logs](#Filtering-and-querying-Portal-logs)\n", " - [Clearing logs](#Clearing-logs)\n", " - [Managing GIS security](#Managing-GIS-security)\n", " - [Working with password policies](#Working-with-password-policies)\n", " - [Inspecting password policy](#Inspecting-password-policy)\n", " - [Updating password policy](#Updating-password-policy)\n", " - [Resetting password policy](#Resetting-password-policy)\n", " - [Working with security configurations](#Working-with-security-configurations)\n", " - [Working with certificates](#SSL-certificates)\n", " - [Enterprise identity store](#Enterprise-identity-store)\n", " - [Managing Enterprise licenses and system settings](#Managing-Enterprise-licenses-and-system-settings)\n", " - [Inspecting licenses for Portal for ArcGIS](#Inspecting-licenses-for-Portal-for-ArcGIS)\n", " - [Releasing ArcGIS Pro licenses checked out for offline use](#Releasing-ArcGIS-Pro-licenses-checked-out-for-offline-use)\n", " - [Inspecting the machines powering your Portal for ArcGIS](#Inspecting-the-machines-powering-your-Portal-for-ArcGIS)\n", " - [Inspecting system directories](#Inspecting-system-directories)\n", " - [Inspecting web adaptors](#Inspecting-web-adaptors)\n", " - [Inspecting other system properties](#Inspecting-other-system-properties)"]}, {"cell_type": "code", "execution_count": null, "metadata": {"collapsed": true}, "outputs": [], "source": ["from arcgis.gis import GIS\n", "gis = GIS(\"https://portalname.domain.com/webadaptor\", \"username\", \"password\")"]}, {"cell_type": "markdown", "metadata": {}, "source": ["## Managing named user licenses and entitlements\n", "ArcGIS Online and Enterprise support assigning licenses for Esri premium apps such as ArcGIS Pro, Navigator for ArcGIS, AppStudio for ArcGIS Standard, Drone2Map for ArcGIS, ArcGIS Business Analyst web app, ArcGIS Community Analyst, GeoPlanner for ArcGIS, and other apps sold through ArcGIS Marketplace that use a per-member license type. \n", "\n", "As an administrator, you use the `gis.admin.license` class of Python API to view, manage and specify which members have licenses for these apps. To learn more about named user licensing model visit [manage licenses help](http://doc.arcgis.com/en/arcgis-online/administer/manage-licenses.htm)."]}, {"cell_type": "markdown", "metadata": {}, "source": ["### Listing apps licensed through the organization\n", "To list all the apps currently licensed through your organization, use the `all()` method:"]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/plain": ["[
| \n", " | Entitlement | \n", "Total | \n", "Assigned | \n", "Remaining | \n", "
|---|---|---|---|---|
| 0 | \n", "smpNAmericaN | \n", "50 | \n", "1 | \n", "49 | \n", "
| 1 | \n", "airportsN | \n", "100 | \n", "0 | \n", "100 | \n", "
| 2 | \n", "dataInteropN | \n", "50 | \n", "1 | \n", "49 | \n", "
| 3 | \n", "networkAnalystN | \n", "50 | \n", "1 | \n", "49 | \n", "
| 4 | \n", "defenseN | \n", "100 | \n", "0 | \n", "100 | \n", "
| 5 | \n", "workflowMgrN | \n", "50 | \n", "0 | \n", "50 | \n", "
| 6 | \n", "LocRefDesktopN | \n", "100 | \n", "0 | \n", "100 | \n", "
| 7 | \n", "spatialAnalystN | \n", "50 | \n", "0 | \n", "50 | \n", "
| 8 | \n", "3DAnalystN | \n", "50 | \n", "0 | \n", "50 | \n", "
| 9 | \n", "dataReviewerN | \n", "50 | \n", "1 | \n", "49 | \n", "
| 10 | \n", "smpEuropeN | \n", "50 | \n", "0 | \n", "50 | \n", "
| 11 | \n", "desktopStdN | \n", "50 | \n", "0 | \n", "50 | \n", "
| 12 | \n", "smpLAmericaN | \n", "50 | \n", "1 | \n", "49 | \n", "
| 13 | \n", "geostatAnalystN | \n", "50 | \n", "1 | \n", "49 | \n", "
| 14 | \n", "desktopBasicN | \n", "50 | \n", "1 | \n", "49 | \n", "
| 15 | \n", "smpMidEAfricaN | \n", "50 | \n", "0 | \n", "50 | \n", "
| 16 | \n", "desktopAdvN | \n", "50 | \n", "0 | \n", "50 | \n", "
| 17 | \n", "publisherN | \n", "100 | \n", "1 | \n", "99 | \n", "
Note: ArcGIS Enterprises do not support the concept of credits. Hence if your GIS is an instance of Enterprise, you would not see the `credits` property.\n", "\n", "### Viewing available credits:"]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/plain": ["80404.89"]}, "execution_count": null, "metadata": {}, "output_type": "execute_result"}], "source": ["gis.admin.credits.credits"]}, {"cell_type": "markdown", "metadata": {}, "source": ["### Managing credits through credit budgeting\n", "The credit budgeting feature of ArcGIS Online allows administrators to view, limit and allocate credits to its users. Learn more about [credit budgeting here](http://doc.arcgis.com/en/arcgis-online/administer/configure-credits.htm).\n", "\n", "You can use the `enable()` method to turn on credit budgeting."]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/plain": ["True"]}, "execution_count": null, "metadata": {}, "output_type": "execute_result"}], "source": ["gis.admin.credits.enable()"]}, {"cell_type": "markdown", "metadata": {}, "source": ["You can use the `is_enabled()` property to verify if credit budgeting is turned on."]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/plain": ["True"]}, "execution_count": null, "metadata": {}, "output_type": "execute_result"}], "source": ["gis.admin.credits.is_enabled"]}, {"cell_type": "markdown", "metadata": {}, "source": ["Once you turn on credit budgeting, you can set a default limit for the number of credits for each user. In addition to this, you can set custom limits to users as well. Default limit applies when you create a new user and do not set a custom limit."]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/plain": ["8000"]}, "execution_count": null, "metadata": {}, "output_type": "execute_result"}], "source": ["gis.admin.credits.default_limit"]}, {"cell_type": "markdown", "metadata": {}, "source": ["#### Allocating credits to a user\n", "You can use the `allocate()` and `deallocate()` methods to allocate custom number of credits or remove credits from a named user."]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/plain": ["True"]}, "execution_count": null, "metadata": {}, "output_type": "execute_result"}], "source": ["#assign one tenth of the available credits to arcgis_python account\n", "api_acc_credits = gis.admin.credits.credits / 10\n", "gis.admin.credits.allocate(username='arcgis_python', credits=api_acc_credits)"]}, {"cell_type": "markdown", "metadata": {}, "source": ["#### Checking credits assigned and available to a user"]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/html": ["
Note: Federation only applies to ArcGIS Enterprise orgs. If your GIS is an org on ArcGIS Online, you cannot perform these tasks\n", "\n", "The `Federation` class of the `admin` module allows GIS administrators to script and automate tasks such as listing the servers in a GIS, identifying their role and function, federating new servers, unfederating servers under maintenance, validating the list of servers etc."]}, {"cell_type": "markdown", "metadata": {}, "source": ["Get the list of servers federated to the GIS:"]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/plain": ["{'servers': [{'adminUrl': 'https://Dev005223.esri.com:6443/arcgis',\n", " 'id': 'COgNhKlPsIjGrCLV',\n", " 'isHosted': True,\n", " 'name': 'Dev005223.esri.com:6443',\n", " 'serverFunction': '',\n", " 'serverRole': 'HOSTING_SERVER',\n", " 'url': 'https://Dev005223.esri.com/server',\n", " 'webgisServerTrustKey': ''},\n", " {'adminUrl': 'https://dev005331.esri.com:6443/arcgis',\n", " 'id': 'GFyaVzJXiogsxKxH',\n", " 'isHosted': False,\n", " 'name': 'dev005331.esri.com:6443',\n", " 'serverFunction': 'RasterAnalytics',\n", " 'serverRole': 'FEDERATED_SERVER',\n", " 'url': 'https://dev005331.esri.com/server',\n", " 'webgisServerTrustKey': ''}]}"]}, "execution_count": null, "metadata": {}, "output_type": "execute_result"}], "source": ["gis.admin.federation.servers"]}, {"cell_type": "markdown", "metadata": {}, "source": ["There are 2 servers federated to this GIS, the first is a `HOSTING_SERVER` and the second a `FEDERATED_SERVER`. The `serverFunction` of the second server is set to `RasterAnalytics`."]}, {"cell_type": "markdown", "metadata": {}, "source": ["### Validating your servers\n", "To validate all the servers attached to your GIS, call the `validate_all()` method. To validate a particular server, call `validate()` and pass the server info."]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/plain": ["{'serversStatus': [{'messages': [\"ArcGIS Server administration URL 'https://Dev005223.esri.com:6443/arcgis' is accessible.\",\n", " 'Validating hosting server.',\n", " \"ArcGIS Server 'https://Dev005223.esri.com:6443/arcgis' version matches with Portal for ArcGIS.\",\n", " \"Verified that server has a registered managed database '/enterpriseDatabases/AGSDataStore_ds_7jq2u67r'.\",\n", " \"The server managed database '/enterpriseDatabases/AGSDataStore_ds_7jq2u67r' validated successfully.\",\n", " 'Validated that the ArcGIS Server site is not in read-only mode.',\n", " 'Validated that the publishing tools service of ArcGIS Server site is started.'],\n", " 'serverId': 'COgNhKlPsIjGrCLV',\n", " 'status': 'success'},\n", " {'messages': [\"ArcGIS Server services URL 'https://dev005331.esri.com/server' cannot be validated against 'https://dev005331.esri.com/server/rest/info'. If the service URL is a proxy URL verify it is accessible to clients.\",\n", " 'Error: java.net.UnknownHostException: dev005331.esri.com. '],\n", " 'serverId': 'GFyaVzJXiogsxKxH',\n", " 'status': 'failure'}],\n", " 'status': 'failure'}"]}, "execution_count": null, "metadata": {}, "output_type": "execute_result"}], "source": ["gis.admin.federation.validate_all()"]}, {"cell_type": "markdown", "metadata": {}, "source": ["The second server reports a failure as the Enterprise is unable to reach or ping it. This server requires maintenance."]}, {"cell_type": "markdown", "metadata": {}, "source": ["### Unfederating a server\n", "You remove a server from the GIS by calling the `unfederate()` method and passing the `serverId`."]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/plain": ["'GFyaVzJXiogsxKxH'"]}, "execution_count": null, "metadata": {}, "output_type": "execute_result"}], "source": ["gis.admin.federation.servers['servers'][1]['id']"]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/plain": ["True"]}, "execution_count": null, "metadata": {}, "output_type": "execute_result"}], "source": ["gis.admin.federation.unfederate('GFyaVzJXiogsxKxH')"]}, {"cell_type": "markdown", "metadata": {}, "source": ["## Querying Portal logs\n", "Portal for ArcGIS records events that occur, and any errors associated with those events, to logs. Logs are an important tool for monitoring and troubleshooting problems with your portal. Information in the logs will help you identify errors and provide context on how to address problems. The logs also comprise a history of the events that occur over time.\n", "\n", "For example, the following events are recorded in the logs:\n", "\n", " - Installation and upgrade events, such as authorizing the software and creating the portal website\n", " - Publishing of services and items, such as hosted services, web maps, and data items\n", " - Content management events, such as sharing items, changing item ownership, and adding, updating, moving, and deleting items\n", " - Security events, such as users logging in to the portal, creating, deleting, and disabling users, creating and changing user roles, updating HTTP and HTTPS settings, import and export of security certificates, and updating the portal's identity store\n", " - Organization management events, such as adding and configuring groups, adding or removing users from a group, configuration of the gallery, basemaps, utility services, and federated servers, and configuring log settings and deleting logs\n", " - General events, such as updating the portal's search index and restarting the portal\n", "\n", "Understanding log messages is important to maintain your GIS. Refer [here](http://server.arcgis.com/en/portal/latest/administer/windows/about-portal-logs.htm) to learn more about logging in general and [here](http://server.arcgis.com/en/portal/latest/administer/windows/work-with-portal-logs.htm#ESRI_SECTION2_F96B4BDF7FBD4EFC865E316C1DFB460C) to understand what gets logged and what the messages mean.\n", "\n", "Using the `Logs` class of the `admin` module, administrators can query and work with Portal log messages. You can query the logging level and other settings from the `settings` property:"]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/plain": ["{'logDir': 'C:\\\\arcgisportal\\\\logs\\\\',\n", " 'logLevel': 'WARNING',\n", " 'maxErrorReportsCount': 10,\n", " 'maxLogFileAge': 90,\n", " 'usageMeteringEnabled': False}"]}, "execution_count": null, "metadata": {}, "output_type": "execute_result"}], "source": ["gis.admin.logs.settings"]}, {"cell_type": "markdown", "metadata": {}, "source": ["### Filtering and querying Portal logs\n", "Using the `query()` method, you can filter and search for Portal logs. Refer to the [query API ref doc](http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.admin.html#arcgis.gis.admin.Logs.query) for all the arguments supported. In the example below, logs for the previous 10 days is searched."]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/plain": ["datetime.datetime(2017, 8, 1, 15, 5, 32, 941945)"]}, "execution_count": null, "metadata": {}, "output_type": "execute_result"}], "source": ["import datetime\n", "import pandas as pd\n", "now = datetime.datetime.now()\n", "start_time = now - datetime.timedelta(days=10)\n", "start_time"]}, {"cell_type": "markdown", "metadata": {}, "source": ["You can pass a Python `Datetime` object to the time arguments."]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/plain": ["{'code': 207051,\n", " 'elapsed': '',\n", " 'machine': 'DEV005223.ESRI.COM',\n", " 'message': \"Validation failed for federated server 'https://dev005331.esri.com:6443/arcgis'.\",\n", " 'methodName': '',\n", " 'process': '1956',\n", " 'source': 'Portal Admin',\n", " 'thread': '14',\n", " 'time': 1502486731894,\n", " 'type': 'WARNING',\n", " 'user': ''}"]}, "execution_count": null, "metadata": {}, "output_type": "execute_result"}], "source": ["recent_logs = gis.admin.logs.query(start_time = start_time)\n", "\n", "#print a message as a sample\n", "recent_logs['logMessages'][0]"]}, {"cell_type": "markdown", "metadata": {}, "source": ["You can construct a Pandas `DataFrame` from the query result and visualize the logs as a table:"]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [{"data": {"text/html": ["
| \n", " | endTime | \n", "hasMore | \n", "logMessages | \n", "startTime | \n", "
|---|---|---|---|---|
| 0 | \n", "1501718081748 | \n", "False | \n", "{'elapsed': '', 'message': 'Validation failed ... | \n", "1502486731894 | \n", "
| 1 | \n", "1501718081748 | \n", "False | \n", "{'elapsed': '', 'message': ' Failed to update ... | \n", "1502486731894 | \n", "
| 2 | \n", "1501718081748 | \n", "False | \n", "{'elapsed': '', 'message': 'Validation failed ... | \n", "1502486731894 | \n", "
| 3 | \n", "1501718081748 | \n", "False | \n", "{'elapsed': '', 'message': 'Validation failed ... | \n", "1502486731894 | \n", "
| 4 | \n", "1501718081748 | \n", "False | \n", "{'elapsed': '', 'message': ' Failed to accept ... | \n", "1502486731894 | \n", "
| Function | ArcGIS Online | ArcGIS Enterprise |
|---|---|---|
| collaborations | X | X |
| credits | X | |
| federation | X | |
| license | X | X |
| logs | X | |
| machines | X | |
| metadata | X | X |
| password_policy | X | X |
| security | X | |
| server | X | |
| site | X | |
| system | X | |
| ux | X | X |
Note: You need to log in using a named user account with administrator privileges. The API automatically detects your role; if you are an organizational administrator, the GIS object will grant you access to the admin module.\n", + "" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Table of Contents**\n", + " - [Managing named user licenses and entitlements](#Managing-named-user-licenses-and-entitlements)\n", + " - [Listing apps licensed through the organization](#Listing-apps-licensed-through-the-organization)\n", + " - [Getting available licenses for an app](#Getting-available-licenses-for-an-app)\n", + " - [Querying extensions assigned to a named user account](#Querying-extensions-assigned-to-a-named-user-account)\n", + " - [Assigning licenses and entitlements to a named user account](#Assigning-licenses-and-entitlements-to-a-named-user-account)\n", + " - [Revoking licenses from a named user account](#Revoking-licenses-from-a-named-used-account)\n", + " - [Managing ArcGIS Online credits](#Managing-ArcGIS-Online-credits)\n", + " - [Viewing available credits](#Viewing-available-credits:)\n", + " - [Managing credits through credit budgeting](#Managing-credits-through-credit-budgeting)\n", + " - [Allocating credits to a user](#Allocating-credits-to-a-user)\n", + " - [Checking credits assigned and available to a user](#Checking-credits-assigned-and-available-to-a-user)\n", + " - [Attaching and removing servers from your GIS](#Attaching-and-removing-ArcGIS-Servers-from-your-GIS)\n", + " - [Validating your servers](#Validating-your-servers)\n", + " - [Unfederating a server](#Unfederating-a-server)\n", + " - [Querying Portal logs](#Querying-Portal-logs)\n", + " - [Filtering and querying Portal logs](#Filtering-and-querying-Portal-logs)\n", + " - [Clearing logs](#Clearing-logs)\n", + " - [Managing GIS security](#Managing-GIS-security)\n", + " - [Working with password policies](#Working-with-password-policies)\n", + " - [Inspecting password policy](#Inspecting-password-policy)\n", + " - [Updating password policy](#Updating-password-policy)\n", + " - [Resetting password policy](#Resetting-password-policy)\n", + " - [Working with security configurations](#Working-with-security-configurations)\n", + " - [Working with certificates](#SSL-certificates)\n", + " - [Enterprise identity store](#Enterprise-identity-store)\n", + " - [Managing Enterprise licenses and system settings](#Managing-Enterprise-licenses-and-system-settings)\n", + " - [Inspecting licenses for Portal for ArcGIS](#Inspecting-licenses-for-Portal-for-ArcGIS)\n", + " - [Releasing ArcGIS Pro licenses checked out for offline use](#Releasing-ArcGIS-Pro-licenses-checked-out-for-offline-use)\n", + " - [Inspecting the machines powering your Portal for ArcGIS](#Inspecting-the-machines-powering-your-Portal-for-ArcGIS)\n", + " - [Inspecting system directories](#Inspecting-system-directories)\n", + " - [Inspecting web adaptors](#Inspecting-web-adaptors)\n", + " - [Inspecting other system properties](#Inspecting-other-system-properties)" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": {}, + "outputs": [], + "source": [ + "from arcgis.gis import GIS\n", + "gis = GIS(profile=
| \n", + " | Entitlement | \n", + "Total | \n", + "Assigned | \n", + "Remaining | \n", + "Users | \n", + "
|---|---|---|---|---|---|
| 0 | \n", + "3DAnalystN | \n", + "500 | \n", + "7 | \n", + "493 | \n", + "[{'user': 'test_create_10', 'lastUsed': 'July ... | \n", + "
| 1 | \n", + "airportsN | \n", + "500 | \n", + "3 | \n", + "497 | \n", + "[{'user': 'test_create_11', 'lastUsed': Non... | \n", + "
| 2 | \n", + "aviationN | \n", + "500 | \n", + "4 | \n", + "496 | \n", + "[{'user': 'test_create_2', 'lastUsed': 'Octobe... | \n", + "
| 3 | \n", + "bathymetryN | \n", + "500 | \n", + "4 | \n", + "496 | \n", + "[{'user': 'test_create_10', 'lastUsed': 'July ... | \n", + "
| 4 | \n", + "businessStdN | \n", + "500 | \n", + "11 | \n", + "489 | \n", + "[{'user': 'test_create_4', 'lastUsed': 'April 18, 2... | \n", + "
| 5 | \n", + "dataInteropN | \n", + "500 | \n", + "6 | \n", + "494 | \n", + "[{'user': 'test_create_10', 'lastUsed': 'July ... | \n", + "
| 6 | \n", + "dataReviewerN | \n", + "500 | \n", + "4 | \n", + "496 | \n", + "[{'user': 'test_create_10', 'lastUsed': 'July ... | \n", + "
| 7 | \n", + "defenseN | \n", + "500 | \n", + "3 | \n", + "497 | \n", + "[{'user': 'test_create_11', 'lastUsed': Non... | \n", + "
| 8 | \n", + "desktopAdvN | \n", + "500 | \n", + "13 | \n", + "487 | \n", + "[{'user': 'test_create_4', 'lastUsed': 'April 18, 2... | \n", + "
| 9 | \n", + "desktopStdN | \n", + "500 | \n", + "1 | \n", + "499 | \n", + "[{'user': 'test_create_2', 'lastUsed': 'Octobe... | \n", + "
| 10 | \n", + "geostatAnalystN | \n", + "500 | \n", + "4 | \n", + "496 | \n", + "[{'user': 'test_create_10', 'lastUsed': 'July ... | \n", + "
| 11 | \n", + "imageAnalystN | \n", + "500 | \n", + "6 | \n", + "494 | \n", + "[{'user': 'test_create_10', 'lastUsed': 'July ... | \n", + "
| 12 | \n", + "indoorsN | \n", + "500 | \n", + "1 | \n", + "499 | \n", + "[{'user': 'test_create_5', 'lastUsed': 'Marc... | \n", + "
| 13 | \n", + "locateXTN | \n", + "500 | \n", + "2 | \n", + "498 | \n", + "[{'user': 'pythondemo', 'lastUsed': None}, {'u... | \n", + "
| 14 | \n", + "LocRefDesktopN | \n", + "500 | \n", + "3 | \n", + "497 | \n", + "[{'user': 'test_create_11', 'lastUsed': Non... | \n", + "
| 15 | \n", + "maritimeN | \n", + "500 | \n", + "3 | \n", + "497 | \n", + "[{'user': 'test_create_11', 'lastUsed': Non... | \n", + "
| 16 | \n", + "networkAnalystN | \n", + "500 | \n", + "5 | \n", + "495 | \n", + "[{'user': 'test_create_10', 'lastUsed': 'July ... | \n", + "
| 17 | \n", + "productionMapN | \n", + "500 | \n", + "3 | \n", + "497 | \n", + "[{'user': 'test_create_11', 'lastUsed': Non... | \n", + "
| 18 | \n", + "publisherN | \n", + "500 | \n", + "3 | \n", + "497 | \n", + "[{'user': 'test_create_10', 'lastUsed': 'July ... | \n", + "
| 19 | \n", + "smpAsiaPacificN | \n", + "500 | \n", + "6 | \n", + "494 | \n", + "[{'user': 'test_create_4', 'lastUsed': 'April 18, 2... | \n", + "
| 20 | \n", + "smpEuropeN | \n", + "500 | \n", + "6 | \n", + "494 | \n", + "[{'user': 'test_create_4', 'lastUsed': 'April 18, 2... | \n", + "
| 21 | \n", + "smpLAmericaN | \n", + "500 | \n", + "3 | \n", + "497 | \n", + "[{'user': 'test_create_4', 'lastUsed': 'April 18, 2... | \n", + "
| 22 | \n", + "smpMidEAfricaN | \n", + "500 | \n", + "6 | \n", + "494 | \n", + "[{'user': 'test_create_4', 'lastUsed': 'April 18, 2... | \n", + "
| 23 | \n", + "smpNAmericaN | \n", + "500 | \n", + "7 | \n", + "493 | \n", + "[{'user': 'test_create_4', 'lastUsed': 'April 18, 2... | \n", + "
| 24 | \n", + "spatialAnalystN | \n", + "500 | \n", + "6 | \n", + "494 | \n", + "[{'user': 'test_create_10', 'lastUsed': 'July ... | \n", + "
| 25 | \n", + "workflowMgrN | \n", + "500 | \n", + "4 | \n", + "496 | \n", + "[{'user': 'test_create_2', 'lastUse... | \n", + "
Note: ArcGIS Enterprises do not support the concept of credits. Hence if your GIS is an instance of Enterprise, you would not see the credits property.\n", + "\n", + "### Viewing available credits:" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "3171304" + ] + }, + "execution_count": 38, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "gis.admin.credits.credits" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Managing credits through credit budgeting\n", + "The credit budgeting feature of ArcGIS Online allows administrators to view, limit, and allocate credits to their users. Learn more about [credit budgeting here](http://doc.arcgis.com/en/arcgis-online/administer/configure-credits.htm).\n", + "\n", + "You can use the `enable()` method to turn on credit budgeting." + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 39, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "gis.admin.credits.enable()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "You can use the `is_enabled` property to verify if credit budgeting is turned on." + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 40, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "gis.admin.credits.is_enabled" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Once you turn on credit budgeting, you can set a **default limit** for the number of credits **per user**. In addition, you can set **custom limits** for individual users. The default limit applies when you create a new user **unless a custom limit is specified**." + ] + }, + { + "cell_type": "code", + "execution_count": 41, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "601" + ] + }, + "execution_count": 41, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "gis.admin.credits.default_limit" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### Allocating credits to a user\n", + "You can use the `allocate()` and `deallocate()` methods to allocate custom number of credits or remove credits from a named user." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": null, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#assign one tenth of the available credits to test_create_f0d9 account\n", + "api_acc_credits = gis.admin.credits.credits / 10\n", + "gis.admin.credits.allocate(username='test_create_f0d9', credits=api_acc_credits)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### Checking credits assigned and available to a user" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
Note: Federation only applies to ArcGIS Enterprise organizations. If your GIS is an organization on ArcGIS Online, you cannot perform these tasks.\n", + "\n", + "The `Federation` class of the `admin` module allows GIS administrators to script and automate tasks such as listing the servers in a GIS, identifying their role and function, federating new servers, unfederating servers under maintenance, and validating the server list." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Get the list of servers federated to the GIS:" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "{'servers': [{'adminUrl': 'https://Dev005223.esri.com:6443/arcgis',\n", + " 'id': 'COgNhKlPsIjGrCLV',\n", + " 'isHosted': True,\n", + " 'name': 'Dev005223.esri.com:6443',\n", + " 'serverFunction': '',\n", + " 'serverRole': 'HOSTING_SERVER',\n", + " 'url': 'https://Dev005223.esri.com/server',\n", + " 'webgisServerTrustKey': ''},\n", + " {'adminUrl': 'https://dev005331.esri.com:6443/arcgis',\n", + " 'id': 'GFyaVzJXiogsxKxH',\n", + " 'isHosted': False,\n", + " 'name': 'dev005331.esri.com:6443',\n", + " 'serverFunction': 'RasterAnalytics',\n", + " 'serverRole': 'FEDERATED_SERVER',\n", + " 'url': 'https://dev005331.esri.com/server',\n", + " 'webgisServerTrustKey': ''}]}" + ] + }, + "execution_count": null, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "gis.admin.federation.servers" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "There are 2 servers federated to this GIS, the first is a `HOSTING_SERVER` and the second a `FEDERATED_SERVER`. The `serverFunction` of the second server is set to `RasterAnalytics`." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Validating your servers\n", + "To validate all the servers attached to your GIS, call the `validate_all()` method. To validate a particular server, call `validate()` and pass the server's **name or ID**." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "{'serversStatus': [{'messages': [\"ArcGIS Server administration URL 'https://Dev005223.esri.com:6443/arcgis' is accessible.\",\n", + " 'Validating hosting server.',\n", + " \"ArcGIS Server 'https://Dev005223.esri.com:6443/arcgis' version matches with Portal for ArcGIS.\",\n", + " \"Verified that server has a registered managed database '/enterpriseDatabases/AGSDataStore_ds_7jq2u67r'.\",\n", + " \"The server managed database '/enterpriseDatabases/AGSDataStore_ds_7jq2u67r' validated successfully.\",\n", + " 'Validated that the ArcGIS Server site is not in read-only mode.',\n", + " 'Validated that the publishing tools service of ArcGIS Server site is started.'],\n", + " 'serverId': 'COgNhKlPsIjGrCLV',\n", + " 'status': 'success'},\n", + " {'messages': [\"ArcGIS Server services URL 'https://dev005331.esri.com/server' cannot be validated against 'https://dev005331.esri.com/server/rest/info'. If the service URL is a proxy URL verify it is accessible to clients.\",\n", + " 'Error: java.net.UnknownHostException: dev005331.esri.com. '],\n", + " 'serverId': 'GFyaVzJXiogsxKxH',\n", + " 'status': 'failure'}],\n", + " 'status': 'failure'}" + ] + }, + "execution_count": null, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "gis.admin.federation.validate_all()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "The second server reports a failure as the Enterprise is unable to reach or ping it. This server requires maintenance." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Unfederating a server\n", + "You remove a server from the GIS by calling the `unfederate()` method and passing the `serverId`." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'GFyaVzJXiogsxKxH'" + ] + }, + "execution_count": null, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "gis.admin.federation.servers['servers'][1]['id']" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": null, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "gis.admin.federation.unfederate('GFyaVzJXiogsxKxH')" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Querying Portal logs\n", + "\n", + "Portal for ArcGIS records events that occur, as well as any associated errors, in its logs. Logs are an important tool for monitoring and troubleshooting problems with your portal. Information in the logs will help you identify errors and provide context on how to address problems. The logs also comprise a history of the events that occur over time.\n", + "\n", + "For example, the following events are recorded in the logs:\n", + "\n", + " - Installation and upgrade events, such as authorizing the software and creating the portal website\n", + " - Publishing of services and items, such as hosted services, web maps, and data items\n", + " - Content management events, such as sharing items, changing item ownership, and adding, updating, moving, and deleting items\n", + " - Security events, such as users logging in to the portal, creating, deleting, and disabling users, creating and changing user roles, updating HTTP and HTTPS settings, import and export of security certificates, and updating the portal's identity store\n", + " - Organization management events, such as adding and configuring groups, adding or removing users from a group, configuration of the gallery, basemaps, utility services, and federated servers, and configuring log settings and deleting logs\n", + " - General events, such as updating the portal's search index and restarting the portal\n", + "\n", + "Understanding log messages is important to maintain your GIS. Refer [here](http://server.arcgis.com/en/portal/latest/administer/windows/about-portal-logs.htm) to learn more about logging in general and [here](http://server.arcgis.com/en/portal/latest/administer/windows/work-with-portal-logs.htm#ESRI_SECTION2_F96B4BDF7FBD4EFC865E316C1DFB460C) to understand what gets logged and what the messages mean.\n", + "\n", + "Using the `Logs` class of the `admin` module, administrators can query and work with Portal log messages. You can query the logging level and other settings from the `settings` property:" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "{'logDir': 'C:\\\\arcgisportal\\\\logs\\\\',\n", + " 'logLevel': 'WARNING',\n", + " 'maxErrorReportsCount': 10,\n", + " 'maxLogFileAge': 90,\n", + " 'usageMeteringEnabled': False}" + ] + }, + "execution_count": null, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "gis.admin.logs.settings" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Filtering and querying Portal logs\n", + "Using the `query()` method, you can filter and search for Portal logs. Refer to the [query API ref doc](http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.admin.html#arcgis.gis.admin.Logs.query) for all the arguments supported. In the example below, logs for the previous 10 days is searched." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "datetime.datetime(2017, 8, 1, 15, 5, 32, 941945)" + ] + }, + "execution_count": null, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import datetime\n", + "import pandas as pd\n", + "now = datetime.datetime.now()\n", + "start_time = now - datetime.timedelta(days=10)\n", + "start_time" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "You can pass a Python `Datetime` object to the time arguments." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "{'code': 207051,\n", + " 'elapsed': '',\n", + " 'machine': 'DEV005223.ESRI.COM',\n", + " 'message': \"Validation failed for federated server 'https://dev005331.esri.com:6443/arcgis'.\",\n", + " 'methodName': '',\n", + " 'process': '1956',\n", + " 'source': 'Portal Admin',\n", + " 'thread': '14',\n", + " 'time': 1502486731894,\n", + " 'type': 'WARNING',\n", + " 'user': ''}" + ] + }, + "execution_count": null, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "recent_logs = gis.admin.logs.query(start_time = start_time)\n", + "\n", + "#print a message as a sample\n", + "recent_logs['logMessages'][0]" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "You can construct a Pandas `DataFrame` from the query result and visualize the logs as a table:" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
| \n", + " | endTime | \n", + "hasMore | \n", + "logMessages | \n", + "startTime | \n", + "
|---|---|---|---|---|
| 0 | \n", + "1501718081748 | \n", + "False | \n", + "{'elapsed': '', 'message': 'Validation failed ... | \n", + "1502486731894 | \n", + "
| 1 | \n", + "1501718081748 | \n", + "False | \n", + "{'elapsed': '', 'message': ' Failed to update ... | \n", + "1502486731894 | \n", + "
| 2 | \n", + "1501718081748 | \n", + "False | \n", + "{'elapsed': '', 'message': 'Validation failed ... | \n", + "1502486731894 | \n", + "
| 3 | \n", + "1501718081748 | \n", + "False | \n", + "{'elapsed': '', 'message': 'Validation failed ... | \n", + "1502486731894 | \n", + "
| 4 | \n", + "1501718081748 | \n", + "False | \n", + "{'elapsed': '', 'message': ' Failed to accept ... | \n", + "1502486731894 | \n", + "
| \n"," | iso2 | \n","iso3 | \n","name | \n","alt_name | \n","datasets | \n","default_dataset | \n","continent | \n","hierarchy | \n","
|---|---|---|---|---|---|---|---|---|
| 0 | \n","AL | \n","ALB | \n","Albania | \n","ALBANIA | \n","[ALB_MBR_2021] | \n","ALB_MBR_2021 | \n","Europe | \n","[census] | \n","
| 1 | \n","DZ | \n","DZA | \n","Algeria | \n","ALGERIA | \n","[DZA_MBR_2021] | \n","DZA_MBR_2021 | \n","Africa | \n","[census] | \n","
| 2 | \n","AD | \n","AND | \n","Andorra | \n","ANDORRA | \n","[AND_MBR_2021] | \n","AND_MBR_2021 | \n","Europe | \n","[census] | \n","
| 3 | \n","AO | \n","AGO | \n","Angola | \n","ANGOLA | \n","[AGO_MBR_2021] | \n","AGO_MBR_2021 | \n","Africa | \n","[census] | \n","
| 4 | \n","AI | \n","AIA | \n","Anguilla | \n","ANGUILLA | \n","[AIA_MBR_2020] | \n","AIA_MBR_2020 | \n","North America | \n","[census] | \n","
| 5 | \n","AR | \n","ARG | \n","Argentina | \n","ARGENTINA | \n","[ARG_MBR_2020] | \n","ARG_MBR_2020 | \n","South America | \n","[census] | \n","
| 6 | \n","AM | \n","ARM | \n","Armenia | \n","ARMENIA | \n","[ARM_MBR_2020] | \n","ARM_MBR_2020 | \n","Europe | \n","[census] | \n","
| 7 | \n","AW | \n","ABW | \n","Aruba | \n","ARUBA | \n","[ABW_MBR_2020] | \n","ABW_MBR_2020 | \n","North America | \n","[census] | \n","
| 8 | \n","AU | \n","AUS | \n","Australia | \n","AUSTRALIA | \n","[AUS_ABS_2016, AUS_MBR_2020] | \n","AUS_ABS_2016 | \n","Oceania | \n","[AUS_ABS, census] | \n","
| 9 | \n","AT | \n","AUT | \n","Austria | \n","AUSTRIA | \n","[AUT_MBR_2021] | \n","AUT_MBR_2021 | \n","Europe | \n","[census] | \n","
| \n"," | analysisVariable | \n","alias | \n","fieldCategory | \n","vintage | \n","
|---|---|---|---|---|
| dataCollectionID | \n","\n"," | \n"," | \n"," | \n"," |
| 1yearincrements | \n","1yearincrements.AGE0_CY | \n","2022 Population Age <1 | \n","2022 Age: 1 Year Increments (Esri) | \n","2022 | \n","
| 1yearincrements | \n","1yearincrements.AGE1_CY | \n","2022 Population Age 1 | \n","2022 Age: 1 Year Increments (Esri) | \n","2022 | \n","
| 1yearincrements | \n","1yearincrements.AGE2_CY | \n","2022 Population Age 2 | \n","2022 Age: 1 Year Increments (Esri) | \n","2022 | \n","
| 1yearincrements | \n","1yearincrements.AGE3_CY | \n","2022 Population Age 3 | \n","2022 Age: 1 Year Increments (Esri) | \n","2022 | \n","
| 1yearincrements | \n","1yearincrements.AGE4_CY | \n","2022 Population Age 4 | \n","2022 Age: 1 Year Increments (Esri) | \n","2022 | \n","
| \n"," | analysisVariable | \n","alias | \n","fieldCategory | \n","vintage | \n","
|---|---|---|---|---|
| dataCollectionID | \n","\n"," | \n"," | \n"," | \n"," |
| 1yearincrements | \n","1yearincrements.FAGE75_FY | \n","2027 Females Age 75 | \n","2027 Age: 1 Year Increments (Esri) | \n","2027 | \n","
| 1yearincrements | \n","1yearincrements.FAGE76_FY | \n","2027 Females Age 76 | \n","2027 Age: 1 Year Increments (Esri) | \n","2027 | \n","
| 1yearincrements | \n","1yearincrements.FAGE77_FY | \n","2027 Females Age 77 | \n","2027 Age: 1 Year Increments (Esri) | \n","2027 | \n","
| 1yearincrements | \n","1yearincrements.FAGE78_FY | \n","2027 Females Age 78 | \n","2027 Age: 1 Year Increments (Esri) | \n","2027 | \n","
| 1yearincrements | \n","1yearincrements.FAGE79_FY | \n","2027 Females Age 79 | \n","2027 Age: 1 Year Increments (Esri) | \n","2027 | \n","
| ... | \n","... | \n","... | \n","... | \n","... | \n","
| 5yearincrements | \n","5yearincrements.MEDAGE_CY | \n","2022 Median Age | \n","2022 Age: 5 Year Increments (Esri) | \n","2022 | \n","
| 5yearincrements | \n","5yearincrements.MALES_CY | \n","2022 Male Population | \n","2022 Age: 5 Year Increments (Esri) | \n","2022 | \n","
| 5yearincrements | \n","5yearincrements.MALE0_CY | \n","2022 Males Age 0-4 | \n","2022 Age: 5 Year Increments (Esri) | \n","2022 | \n","
| 5yearincrements | \n","5yearincrements.MALE5_CY | \n","2022 Males Age 5-9 | \n","2022 Age: 5 Year Increments (Esri) | \n","2022 | \n","
| 5yearincrements | \n","5yearincrements.MALE10_CY | \n","2022 Males Age 10-14 | \n","2022 Age: 5 Year Increments (Esri) | \n","2022 | \n","
100 rows × 4 columns
\n","| \n"," | analysisVariable | \n","alias | \n","fieldCategory | \n","vintage | \n","
|---|---|---|---|---|
| dataCollectionID | \n","\n"," | \n"," | \n"," | \n"," |
| 15YearIncrements | \n","15YearIncrements.PAGE01_CY | \n","2020 Total Population Age 0-14 | \n","2020 Population Totals (MBR) | \n","2020 | \n","
| 15YearIncrements | \n","15YearIncrements.PAGE02_CY | \n","2020 Total Population Age 15-29 | \n","2020 Population Totals (MBR) | \n","2020 | \n","
| 15YearIncrements | \n","15YearIncrements.PAGE03_CY | \n","2020 Total Population Age 30-44 | \n","2020 Population Totals (MBR) | \n","2020 | \n","
| 15YearIncrements | \n","15YearIncrements.PAGE04_CY | \n","2020 Total Population Age 45-59 | \n","2020 Population Totals (MBR) | \n","2020 | \n","
| 15YearIncrements | \n","15YearIncrements.PAGE05_CY | \n","2020 Total Population Age 60+ | \n","2020 Population Totals (MBR) | \n","2020 | \n","
| \n"," | analysisVariable | \n","alias | \n","fieldCategory | \n","vintage | \n","
|---|---|---|---|---|
| dataCollectionID | \n","\n"," | \n"," | \n"," | \n"," |
| KeyGlobalFacts | \n","KeyGlobalFacts.TOTPOP | \n","Total Population | \n","Key Demographic Indicators | \n","NaN | \n","
| KeyGlobalFacts | \n","KeyGlobalFacts.TOTHH | \n","Total Households | \n","Key Demographic Indicators | \n","NaN | \n","
| KeyGlobalFacts | \n","KeyGlobalFacts.AVGHHSZ | \n","Average Household Size | \n","Key Demographic Indicators | \n","NaN | \n","
| KeyGlobalFacts | \n","KeyGlobalFacts.TOTMALES | \n","Male Population | \n","Age: 5 Year Increments | \n","NaN | \n","
| KeyGlobalFacts | \n","KeyGlobalFacts.TOTFEMALES | \n","Female Population | \n","Age: 5 Year Increments | \n","NaN | \n","
| \n"," | analysisVariable | \n","alias | \n","fieldCategory | \n","vintage | \n","
|---|---|---|---|---|
| dataCollectionID | \n","\n"," | \n"," | \n"," | \n"," |
| EducationalAttainment | \n","EducationalAttainment.EDUC01A_CY | \n","2020 Pop 15+/Edu: No Qualification | \n","2020 Educational Attainment (MBR) | \n","2020 | \n","
| EducationalAttainment | \n","EducationalAttainment.EDUC02A_CY | \n","2020 Pop 15+/Edu: Level 1 | \n","2020 Educational Attainment (MBR) | \n","2020 | \n","
| EducationalAttainment | \n","EducationalAttainment.EDUC03A_CY | \n","2020 Pop 15+/Edu: Level 2 | \n","2020 Educational Attainment (MBR) | \n","2020 | \n","
| EducationalAttainment | \n","EducationalAttainment.EDUC04A_CY | \n","2020 Pop 15+/Edu: Level 3 | \n","2020 Educational Attainment (MBR) | \n","2020 | \n","
| EducationalAttainment | \n","EducationalAttainment.EDUC05A_CY | \n","2020 Pop 15+/Edu: Level 4 | \n","2020 Educational Attainment (MBR) | \n","2020 | \n","
| EducationalAttainment | \n","EducationalAttainment.EDUC06B_CY | \n","2020 Pop 15+/Edu: Level 5 Diploma | \n","2020 Educational Attainment (MBR) | \n","2020 | \n","
| EducationalAttainment | \n","EducationalAttainment.EDUC07A_CY | \n","2020 Pop 15+/Edu: Level 6 Diploma | \n","2020 Educational Attainment (MBR) | \n","2020 | \n","
| EducationalAttainment | \n","EducationalAttainment.EDUC08A_CY | \n","2020 Pop 15+/Edu: Bachelor Degree | \n","2020 Educational Attainment (MBR) | \n","2020 | \n","
| EducationalAttainment | \n","EducationalAttainment.EDUC09A_CY | \n","2020 Pop 15+/Edu: Post-graduate and Honours de... | \n","2020 Educational Attainment (MBR) | \n","2020 | \n","
| EducationalAttainment | \n","EducationalAttainment.EDUC10A_CY | \n","2020 Pop 15+/Edu: Master's Degree | \n","2020 Educational Attainment (MBR) | \n","2020 | \n","
| EducationalAttainment | \n","EducationalAttainment.EDUC11A_CY | \n","2020 Pop 15+/Edu: Doctorate | \n","2020 Educational Attainment (MBR) | \n","2020 | \n","
| EducationalAttainment | \n","EducationalAttainment.EDUC12A_CY | \n","2020 Pop 15+/Edu: Overseas Secondary School | \n","2020 Educational Attainment (MBR) | \n","2020 | \n","
| EducationalAttainment | \n","EducationalAttainment.EDUC13_CY | \n","2020 Pop 15+/Edu: Not Included Elsewhere | \n","2020 Educational Attainment (MBR) | \n","2020 | \n","
| \n"," | analysisVariable | \n","alias | \n","fieldCategory | \n","vintage | \n","
|---|---|---|---|---|
| dataCollectionID | \n","\n"," | \n"," | \n"," | \n"," |
| Spending | \n","Spending.CS01_CY | \n","2020 Food & Beverage: Total | \n","2020 Food & Beverage Expenditures (MBR) | \n","2020 | \n","
| Spending | \n","Spending.CS01PRM_CY | \n","2020 Food & Beverage: Per Mill | \n","2020 Food & Beverage Expenditures (MBR) | \n","2020 | \n","
| Spending | \n","Spending.CSPC01_CY | \n","2020 Food & Beverage: Per Capita | \n","2020 Food & Beverage Expenditures (MBR) | \n","2020 | \n","
| Spending | \n","Spending.CS01IDX_CY | \n","2020 Food & Beverage: Index | \n","2020 Food & Beverage Expenditures (MBR) | \n","2020 | \n","
| Spending | \n","Spending.CS02_CY | \n","2020 Alcoholic Beverage: Total | \n","2020 Alcoholic Beverage Expenditures (MBR) | \n","2020 | \n","
| ... | \n","... | \n","... | \n","... | \n","... | \n","
| Spending | \n","Spending.CS19IDX_CY | \n","2020 Personal Care: Index | \n","2020 Personal Care Expenditures (MBR) | \n","2020 | \n","
| Spending | \n","Spending.CS20_CY | \n","2020 Personal Effects: Total | \n","2020 Jewelry & Personal Effects Expenditures (... | \n","2020 | \n","
| Spending | \n","Spending.CS20PRM_CY | \n","2020 Personal Effects: Per Mill | \n","2020 Jewelry & Personal Effects Expenditures (... | \n","2020 | \n","
| Spending | \n","Spending.CSPC20_CY | \n","2020 Personal Effects: Per Capita | \n","2020 Jewelry & Personal Effects Expenditures (... | \n","2020 | \n","
| Spending | \n","Spending.CS20IDX_CY | \n","2020 Personal Effects: Index | \n","2020 Jewelry & Personal Effects Expenditures (... | \n","2020 | \n","
80 rows × 4 columns
\n","| \n"," | source_country | \n","x | \n","y | \n","area_type | \n","buffer_units | \n","buffer_units_alias | \n","buffer_radii | \n","aggregation_method | \n","population_to_polygon_size_rating | \n","apportionment_confidence | \n","... | \n","fem45 | \n","fem50 | \n","fem55 | \n","fem60 | \n","fem65 | \n","fem70 | \n","fem75 | \n","fem80 | \n","fem85 | \n","SHAPE | \n","
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n","USA | \n","-117.19479 | \n","34.057265 | \n","RingBuffer | \n","esriMiles | \n","Miles | \n","1.0 | \n","BlockApportionment:US.BlockGroups;PointsLayer:... | \n","2.191 | \n","2.576 | \n","... | \n","366.0 | \n","392.0 | \n","365.0 | \n","345.0 | \n","322.0 | \n","277.0 | \n","168.0 | \n","103.0 | \n","132.0 | \n","{\"rings\": [[[-117.19479001927878, 34.071773611... | \n","
1 rows × 48 columns
\n","| \n"," | std_geography_level | \n","std_geography_name | \n","std_geography_id | \n","source_country | \n","aggregation_method | \n","population_to_polygon_size_rating | \n","apportionment_confidence | \n","has_data | \n","rel65_hi2_oc | \n","acscivnins | \n","... | \n","pop85_cy | \n","pop18up_cy | \n","pop21up_cy | \n","medage_cy | \n","hhu18_c10 | \n","medhinc_cy | \n","s27_bus | \n","s27_sales | \n","s27_emp | \n","SHAPE | \n","
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n","US.ZIP5 | \n","Redlands | \n","92373 | \n","USA | \n","Query:US.ZIP5 | \n","2.191 | \n","2.576 | \n","1 | \n","2.0 | \n","31157.0 | \n","... | \n","1205.0 | \n","28208.0 | \n","27076.0 | \n","42.2 | \n","3851.0 | \n","91009.0 | \n","224.0 | \n","306371.0 | \n","4093.0 | \n","{\"rings\": [[[-117.16767396036383, 33.976847519... | \n","
1 rows × 431 columns
\n","| \n"," | source_country | \n","x | \n","y | \n","area_type | \n","buffer_units | \n","buffer_units_alias | \n","buffer_radii | \n","aggregation_method | \n","population_to_polygon_size_rating | \n","apportionment_confidence | \n","has_data | \n","fem45 | \n","fem55 | \n","fem65 | \n","SHAPE | \n","
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n","USA | \n","-117.19479 | \n","34.057265 | \n","RingBuffer | \n","esriMiles | \n","Miles | \n","1.0 | \n","BlockApportionment:US.BlockGroups;PointsLayer:... | \n","2.191 | \n","2.576 | \n","1 | \n","366.0 | \n","365.0 | \n","322.0 | \n","{\"rings\": [[[-117.19479001927878, 34.071773611... | \n","
| \n"," | OBJECTID | \n","Province_State | \n","Country_Region | \n","Last_Update | \n","Lat | \n","Long_ | \n","Confirmed | \n","Recovered | \n","Deaths | \n","Active | \n","Admin2 | \n","FIPS | \n","Combined_Key | \n","Incident_Rate | \n","People_Tested | \n","People_Hospitalized | \n","UID | \n","ISO3 | \n","SHAPE | \n","
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n","1 | \n","Alabama | \n","US | \n","2022-10-27 17:22:34 | \n","32.539527 | \n","-86.644082 | \n","18511 | \n","<NA> | \n","228 | \n","<NA> | \n","Autauga | \n","01001 | \n","Autauga, Alabama, US | \n","33132.864379 | \n","<NA> | \n","<NA> | \n","84001001 | \n","USA | \n","{\"x\": -86.64408226999996, \"y\": 32.539527450000... | \n","
| 1 | \n","2 | \n","Alabama | \n","US | \n","2022-10-27 17:22:34 | \n","30.72775 | \n","-87.722071 | \n","65973 | \n","<NA> | \n","716 | \n","<NA> | \n","Baldwin | \n","01003 | \n","Baldwin, Alabama, US | \n","29553.293853 | \n","<NA> | \n","<NA> | \n","84001003 | \n","USA | \n","{\"x\": -87.72207057999998, \"y\": 30.727749910000... | \n","
| 2 | \n","3 | \n","Alabama | \n","US | \n","2022-10-27 17:22:34 | \n","31.868263 | \n","-85.387129 | \n","6930 | \n","<NA> | \n","103 | \n","<NA> | \n","Barbour | \n","01005 | \n","Barbour, Alabama, US | \n","28072.591752 | \n","<NA> | \n","<NA> | \n","84001005 | \n","USA | \n","{\"x\": -85.38712859999998, \"y\": 31.868263000000... | \n","
| 3 | \n","4 | \n","Alabama | \n","US | \n","2022-10-27 17:22:34 | \n","32.996421 | \n","-87.125115 | \n","7575 | \n","<NA> | \n","108 | \n","<NA> | \n","Bibb | \n","01007 | \n","Bibb, Alabama, US | \n","33826.024828 | \n","<NA> | \n","<NA> | \n","84001007 | \n","USA | \n","{\"x\": -87.12511459999996, \"y\": 32.996420640000... | \n","
| 4 | \n","5 | \n","Alabama | \n","US | \n","2022-10-27 17:22:34 | \n","33.982109 | \n","-86.567906 | \n","17320 | \n","<NA> | \n","258 | \n","<NA> | \n","Blount | \n","01009 | \n","Blount, Alabama, US | \n","29951.92474 | \n","<NA> | \n","<NA> | \n","84001009 | \n","USA | \n","{\"x\": -86.56790592999994, \"y\": 33.982109180000... | \n","
| \n"," | ID | \n","OBJECTID_0 | \n","sourceCountry | \n","Long_ | \n","Recovered | \n","Country_Region | \n","FIPS | \n","Last_Update | \n","Combined_Key | \n","ISO3 | \n","... | \n","bufferUnitsAlias | \n","bufferRadii | \n","aggregationMethod | \n","populationToPolygonSizeRating | \n","apportionmentConfidence | \n","HasData | \n","FEM45 | \n","FEM55 | \n","FEM65 | \n","SHAPE | \n","
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n","0 | \n","1 | \n","US | \n","-82.461707 | \n","0 | \n","US | \n","45001 | \n","1596857725000 | \n","Abbeville, South Carolina, US | \n","USA | \n","... | \n","Miles | \n","1 | \n","BlockApportionment:US.BlockGroups | \n","2.191 | \n","2.576 | \n","1 | \n","2 | \n","2 | \n","2 | \n","{\"rings\": [[[-82.46170657999994, 34.2378420028... | \n","
| 1 | \n","1 | \n","2 | \n","US | \n","-92.414197 | \n","0 | \n","US | \n","22001 | \n","1596857725000 | \n","Acadia, Louisiana, US | \n","USA | \n","... | \n","Miles | \n","1 | \n","BlockApportionment:US.BlockGroups | \n","2.191 | \n","2.576 | \n","1 | \n","3 | \n","3 | \n","2 | \n","{\"rings\": [[[-92.41419697999997, 30.3095821536... | \n","
| 2 | \n","2 | \n","3 | \n","US | \n","-75.632346 | \n","0 | \n","US | \n","51001 | \n","1596857725000 | \n","Accomack, Virginia, US | \n","USA | \n","... | \n","Miles | \n","1 | \n","BlockApportionment:US.BlockGroups | \n","2.191 | \n","2.576 | \n","1 | \n","14 | \n","16 | \n","14 | \n","{\"rings\": [[[-75.63234615, 37.781571251121655]... | \n","
| 3 | \n","3 | \n","4 | \n","US | \n","-116.241552 | \n","0 | \n","US | \n","16001 | \n","1596857725000 | \n","Ada, Idaho, US | \n","USA | \n","... | \n","Miles | \n","1 | \n","BlockApportionment:US.BlockGroups | \n","2.191 | \n","2.576 | \n","1 | \n","0 | \n","0 | \n","0 | \n","{\"rings\": [[[-116.24155159999998, 43.467142851... | \n","
| 4 | \n","4 | \n","5 | \n","US | \n","-94.471059 | \n","0 | \n","US | \n","19001 | \n","1596857725000 | \n","Adair, Iowa, US | \n","USA | \n","... | \n","Miles | \n","1 | \n","BlockApportionment:US.BlockGroups | \n","2.191 | \n","2.576 | \n","1 | \n","1 | \n","1 | \n","1 | \n","{\"rings\": [[[-94.47105873999998, 41.3452468224... | \n","
5 rows × 31 columns
\n","| \n", + " | iso2 | \n", + "iso3 | \n", + "name | \n", + "alt_name | \n", + "datasets | \n", + "default_dataset | \n", + "continent | \n", + "hierarchies | \n", + "default_hierarchy | \n", + "
|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", + "AL | \n", + "ALB | \n", + "Albania | \n", + "ALBANIA | \n", + "[ALB_MBR_2024] | \n", + "ALB_MBR_2024 | \n", + "Europe | \n", + "[census] | \n", + "census | \n", + "
| 1 | \n", + "DZ | \n", + "DZA | \n", + "Algeria | \n", + "ALGERIA | \n", + "[DZA_MBR_2025] | \n", + "DZA_MBR_2025 | \n", + "Africa | \n", + "[census] | \n", + "census | \n", + "
| 2 | \n", + "AD | \n", + "AND | \n", + "Andorra | \n", + "ANDORRA | \n", + "[AND_MBR_2024] | \n", + "AND_MBR_2024 | \n", + "Europe | \n", + "[census] | \n", + "census | \n", + "
| 3 | \n", + "AO | \n", + "AGO | \n", + "Angola | \n", + "ANGOLA | \n", + "[AGO_MBR_2025] | \n", + "AGO_MBR_2025 | \n", + "Africa | \n", + "[census] | \n", + "census | \n", + "
| 4 | \n", + "AI | \n", + "AIA | \n", + "Anguilla | \n", + "ANGUILLA | \n", + "[AIA_MBR_2025] | \n", + "AIA_MBR_2025 | \n", + "North America | \n", + "[census] | \n", + "census | \n", + "
| 5 | \n", + "AR | \n", + "ARG | \n", + "Argentina | \n", + "ARGENTINA | \n", + "[ARG_MBR_2024] | \n", + "ARG_MBR_2024 | \n", + "South America | \n", + "[census] | \n", + "census | \n", + "
| 6 | \n", + "AM | \n", + "ARM | \n", + "Armenia | \n", + "ARMENIA | \n", + "[ARM_MBR_2024] | \n", + "ARM_MBR_2024 | \n", + "Europe | \n", + "[census] | \n", + "census | \n", + "
| 7 | \n", + "AW | \n", + "ABW | \n", + "Aruba | \n", + "ARUBA | \n", + "[ABW_MBR_2025] | \n", + "ABW_MBR_2025 | \n", + "North America | \n", + "[census] | \n", + "census | \n", + "
| 8 | \n", + "AU | \n", + "AUS | \n", + "Australia | \n", + "AUSTRALIA | \n", + "[AUS_ABS_2021, AUS_MBR_2024] | \n", + "AUS_ABS_2021 | \n", + "Oceania | \n", + "[AUS_ABS, census] | \n", + "AUS_ABS | \n", + "
| 9 | \n", + "AT | \n", + "AUT | \n", + "Austria | \n", + "AUSTRIA | \n", + "[AUT_MBR_2024] | \n", + "AUT_MBR_2024 | \n", + "Europe | \n", + "[census] | \n", + "census | \n", + "
| \n", + " | analysisVariable | \n", + "alias | \n", + "fieldCategory | \n", + "vintage | \n", + "
|---|---|---|---|---|
| dataCollectionID | \n", + "\n", + " | \n", + " | \n", + " | \n", + " |
| 1yearincrements | \n", + "1yearincrements.AGE0_CY | \n", + "2025 Population Age <1 | \n", + "2025 Age: 1 Year Increments (Esri) | \n", + "2025 | \n", + "
| 1yearincrements | \n", + "1yearincrements.AGE1_CY | \n", + "2025 Population Age 1 | \n", + "2025 Age: 1 Year Increments (Esri) | \n", + "2025 | \n", + "
| 1yearincrements | \n", + "1yearincrements.AGE2_CY | \n", + "2025 Population Age 2 | \n", + "2025 Age: 1 Year Increments (Esri) | \n", + "2025 | \n", + "
| 1yearincrements | \n", + "1yearincrements.AGE3_CY | \n", + "2025 Population Age 3 | \n", + "2025 Age: 1 Year Increments (Esri) | \n", + "2025 | \n", + "
| 1yearincrements | \n", + "1yearincrements.AGE4_CY | \n", + "2025 Population Age 4 | \n", + "2025 Age: 1 Year Increments (Esri) | \n", + "2025 | \n", + "
| \n", + " | analysisVariable | \n", + "alias | \n", + "fieldCategory | \n", + "vintage | \n", + "
|---|---|---|---|---|
| dataCollectionID | \n", + "\n", + " | \n", + " | \n", + " | \n", + " |
| 1yearincrements | \n", + "1yearincrements.FAGE75_FY | \n", + "2030 Females Age 75 | \n", + "2030 Age: 1 Year Increments (Esri) | \n", + "2030 | \n", + "
| 1yearincrements | \n", + "1yearincrements.FAGE76_FY | \n", + "2030 Females Age 76 | \n", + "2030 Age: 1 Year Increments (Esri) | \n", + "2030 | \n", + "
| 1yearincrements | \n", + "1yearincrements.FAGE77_FY | \n", + "2030 Females Age 77 | \n", + "2030 Age: 1 Year Increments (Esri) | \n", + "2030 | \n", + "
| 1yearincrements | \n", + "1yearincrements.FAGE78_FY | \n", + "2030 Females Age 78 | \n", + "2030 Age: 1 Year Increments (Esri) | \n", + "2030 | \n", + "
| 1yearincrements | \n", + "1yearincrements.FAGE79_FY | \n", + "2030 Females Age 79 | \n", + "2030 Age: 1 Year Increments (Esri) | \n", + "2030 | \n", + "
| ... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
| 1yearincrements | \n", + "1yearincrements.AGE18C20 | \n", + "2020 Population Age 18 | \n", + "2020 Age: 1 Year Increments (U.S. Census) | \n", + "2020 | \n", + "
| 1yearincrements | \n", + "1yearincrements.AGE19C20 | \n", + "2020 Population Age 19 | \n", + "2020 Age: 1 Year Increments (U.S. Census) | \n", + "2020 | \n", + "
| 1yearincrements | \n", + "1yearincrements.AGE20C20 | \n", + "2020 Population Age 20 | \n", + "2020 Age: 1 Year Increments (U.S. Census) | \n", + "2020 | \n", + "
| 1yearincrements | \n", + "1yearincrements.AGE21C20 | \n", + "2020 Population Age 21 | \n", + "2020 Age: 1 Year Increments (U.S. Census) | \n", + "2020 | \n", + "
| 1yearincrements | \n", + "1yearincrements.MLU20POP20 | \n", + "2020 Male Pop <20 | \n", + "2020 Age: 1 Year Increments (U.S. Census) | \n", + "2020 | \n", + "
100 rows × 4 columns
\n", + "| \n", + " | analysisVariable | \n", + "alias | \n", + "fieldCategory | \n", + "vintage | \n", + "
|---|---|---|---|---|
| dataCollectionID | \n", + "\n", + " | \n", + " | \n", + " | \n", + " |
| 5YearIncrementsStatsNZ | \n", + "5YearIncrementsStatsNZ.Age5year_Total | \n", + "2023 5-Year Age Groups: Total | \n", + "2023 Population by Age (Stats NZ) | \n", + "2023 | \n", + "
| 5YearIncrementsStatsNZ | \n", + "5YearIncrementsStatsNZ.Age5year_0_4_years | \n", + "2023 5-Year Age Group: 0 to 4 Years | \n", + "2023 Population by Age (Stats NZ) | \n", + "2023 | \n", + "
| 5YearIncrementsStatsNZ | \n", + "5YearIncrementsStatsNZ.Age5year_5_9_years | \n", + "2023 5-Year Age Group: 5 to 9 Years | \n", + "2023 Population by Age (Stats NZ) | \n", + "2023 | \n", + "
| 5YearIncrementsStatsNZ | \n", + "5YearIncrementsStatsNZ.Age5year_10_14_years | \n", + "2023 5-Year Age Group: 10 to 14 Years | \n", + "2023 Population by Age (Stats NZ) | \n", + "2023 | \n", + "
| 5YearIncrementsStatsNZ | \n", + "5YearIncrementsStatsNZ.Age5year_15_19_years | \n", + "2023 5-Year Age Group: 15 to 19 Years | \n", + "2023 Population by Age (Stats NZ) | \n", + "2023 | \n", + "
| \n", + " | analysisVariable | \n", + "alias | \n", + "fieldCategory | \n", + "vintage | \n", + "
|---|---|---|---|---|
| dataCollectionID | \n", + "\n", + " | \n", + " | \n", + " | \n", + " |
| KeyGlobalFacts | \n", + "KeyGlobalFacts.TOTPOP | \n", + "Total Population | \n", + "Key Demographic Indicators | \n", + "NaN | \n", + "
| KeyGlobalFacts | \n", + "KeyGlobalFacts.TOTHH | \n", + "Total Households | \n", + "Key Demographic Indicators | \n", + "NaN | \n", + "
| KeyGlobalFacts | \n", + "KeyGlobalFacts.TOTFEMALES | \n", + "Female Population | \n", + "Key Demographic Indicators | \n", + "NaN | \n", + "
| KeyGlobalFacts | \n", + "KeyGlobalFacts.TOTMALES | \n", + "Male Population | \n", + "Key Demographic Indicators | \n", + "NaN | \n", + "
| KeyGlobalFacts | \n", + "KeyGlobalFacts.AVGHHSZ | \n", + "Average Household Size | \n", + "Key Demographic Indicators | \n", + "NaN | \n", + "
| \n", + " | analysisVariable | \n", + "alias | \n", + "fieldCategory | \n", + "vintage | \n", + "
|---|---|---|---|---|
| dataCollectionID | \n", + "\n", + " | \n", + " | \n", + " | \n", + " |
| EducationalAttainmentStatsNZ | \n", + "EducationalAttainmentStatsNZ.HighestQual_Total | \n", + "2023 Education Attainment: Total | \n", + "2023 Educational Attainment (Stats NZ) | \n", + "2023 | \n", + "
| EducationalAttainmentStatsNZ | \n", + "EducationalAttainmentStatsNZ.HighestQual_TStated | \n", + "2023 Education Attainment: Total Stated | \n", + "2023 Educational Attainment (Stats NZ) | \n", + "2023 | \n", + "
| EducationalAttainmentStatsNZ | \n", + "EducationalAttainmentStatsNZ.HighestQual_No_quali | \n", + "2023 Education Attainment: No Qualifications | \n", + "2023 Educational Attainment (Stats NZ) | \n", + "2023 | \n", + "
| EducationalAttainmentStatsNZ | \n", + "EducationalAttainmentStatsNZ.HighestQual_L1_Certi | \n", + "2023 Education Attainment: Level 1 Certificate | \n", + "2023 Educational Attainment (Stats NZ) | \n", + "2023 | \n", + "
| EducationalAttainmentStatsNZ | \n", + "EducationalAttainmentStatsNZ.HighestQual_L2_Certi | \n", + "2023 Education Attainment: Level 2 Certificate | \n", + "2023 Educational Attainment (Stats NZ) | \n", + "2023 | \n", + "
| \n", + " | analysisVariable | \n", + "alias | \n", + "fieldCategory | \n", + "vintage | \n", + "
|---|---|---|---|---|
| dataCollectionID | \n", + "\n", + " | \n", + " | \n", + " | \n", + " |
| FamilyStatsNZ | \n", + "FamilyStatsNZ.FamilyCount_Total | \n", + "2023 Count of Families: Total | \n", + "2023 Family Totals (Stats NZ) | \n", + "2023 | \n", + "
| FamilyStatsNZ | \n", + "FamilyStatsNZ.FamType_Total | \n", + "2023 Family Type: Total | \n", + "2023 Dwelling by Family Type (Stats NZ) | \n", + "2023 | \n", + "
| FamilyStatsNZ | \n", + "FamilyStatsNZ.FamType_CoupNoChildren | \n", + "2023 Family Type: Couple Without Children | \n", + "2023 Dwelling by Family Type (Stats NZ) | \n", + "2023 | \n", + "
| FamilyStatsNZ | \n", + "FamilyStatsNZ.FamType_CoupWithChildren | \n", + "2023 Family Type: Couple With Child(ren) | \n", + "2023 Dwelling by Family Type (Stats NZ) | \n", + "2023 | \n", + "
| FamilyStatsNZ | \n", + "FamilyStatsNZ.FamType_OneParent | \n", + "2023 Family Type: One Parent With Child(ren) | \n", + "2023 Dwelling by Family Type (Stats NZ) | \n", + "2023 | \n", + "
| \n", + " | source_country | \n", + "x | \n", + "y | \n", + "area_type | \n", + "buffer_units | \n", + "buffer_units_alias | \n", + "buffer_radii | \n", + "aggregation_method | \n", + "population_to_polygon_size_rating | \n", + "apportionment_confidence | \n", + "... | \n", + "fem45 | \n", + "fem50 | \n", + "fem55 | \n", + "fem60 | \n", + "fem65 | \n", + "fem70 | \n", + "fem75 | \n", + "fem80 | \n", + "fem85 | \n", + "SHAPE | \n", + "
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", + "US | \n", + "-117.194835 | \n", + "34.057242 | \n", + "RingBuffer | \n", + "esriMiles | \n", + "Miles | \n", + "1.0 | \n", + "BlockApportionment:US.BlockGroups;PointsLayer:... | \n", + "2.191 | \n", + "2.576 | \n", + "... | \n", + "381.0 | \n", + "375.0 | \n", + "323.0 | \n", + "341.0 | \n", + "281.0 | \n", + "255.0 | \n", + "190.0 | \n", + "132.0 | \n", + "116.0 | \n", + "{\"rings\": [[[-117.194835113918, 34.07175043587... | \n", + "
1 rows × 48 columns
\n", + "| \n", + " | std_geography_level | \n", + "std_geography_name | \n", + "std_geography_id | \n", + "source_country | \n", + "aggregation_method | \n", + "population_to_polygon_size_rating | \n", + "apportionment_confidence | \n", + "has_data | \n", + "rel65_hi2_oc | \n", + "acscivnins | \n", + "... | \n", + "pop85_cy | \n", + "pop18up_cy | \n", + "pop21up_cy | \n", + "medage_cy | \n", + "hhu18_c10 | \n", + "medhinc_cy | \n", + "s27_bus | \n", + "s27_sales | \n", + "s27_emp | \n", + "SHAPE | \n", + "
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", + "US.ZIP5 | \n", + "Redlands | \n", + "92373 | \n", + "US | \n", + "Query:US.ZIP5 | \n", + "2.191 | \n", + "2.576 | \n", + "1 | \n", + "1.0 | \n", + "32904.0 | \n", + "... | \n", + "1409.0 | \n", + "28175.0 | \n", + "27097.0 | \n", + "41.8 | \n", + "3805.0 | \n", + "105863.0 | \n", + "245.0 | \n", + "418153000.0 | \n", + "5296.0 | \n", + "{\"rings\": [[[-117.12524300001411, 34.027986999... | \n", + "
1 rows × 431 columns
\n", + "| \n", + " | source_country | \n", + "x | \n", + "y | \n", + "area_type | \n", + "buffer_units | \n", + "buffer_units_alias | \n", + "buffer_radii | \n", + "aggregation_method | \n", + "population_to_polygon_size_rating | \n", + "apportionment_confidence | \n", + "has_data | \n", + "fem45 | \n", + "fem55 | \n", + "fem65 | \n", + "SHAPE | \n", + "
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", + "US | \n", + "-117.194835 | \n", + "34.057242 | \n", + "RingBuffer | \n", + "esriMiles | \n", + "Miles | \n", + "1.0 | \n", + "BlockApportionment:US.BlockGroups;PointsLayer:... | \n", + "2.191 | \n", + "2.576 | \n", + "1 | \n", + "381.0 | \n", + "323.0 | \n", + "281.0 | \n", + "{\"rings\": [[[-117.194835113918, 34.07175043587... | \n", + "
| \n", + " | OBJECTID | \n", + "Province_State | \n", + "Country_Region | \n", + "Last_Update | \n", + "Lat | \n", + "Long_ | \n", + "Confirmed | \n", + "Recovered | \n", + "Deaths | \n", + "Active | \n", + "Admin2 | \n", + "FIPS | \n", + "Combined_Key | \n", + "Incident_Rate | \n", + "People_Tested | \n", + "People_Hospitalized | \n", + "UID | \n", + "ISO3 | \n", + "SHAPE | \n", + "
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", + "1 | \n", + "Alabama | \n", + "US | \n", + "2023-03-10 13:21:02 | \n", + "32.539527 | \n", + "-86.644082 | \n", + "19790 | \n", + "<NA> | \n", + "232 | \n", + "<NA> | \n", + "Autauga | \n", + "01001 | \n", + "Autauga, Alabama, US | \n", + "35422.14824 | \n", + "<NA> | \n", + "<NA> | \n", + "84001001 | \n", + "USA | \n", + "{\"x\": -86.64408226999996, \"y\": 32.539527450000... | \n", + "
| 1 | \n", + "2 | \n", + "Alabama | \n", + "US | \n", + "2023-03-10 13:21:02 | \n", + "30.72775 | \n", + "-87.722071 | \n", + "69860 | \n", + "<NA> | \n", + "727 | \n", + "<NA> | \n", + "Baldwin | \n", + "01003 | \n", + "Baldwin, Alabama, US | \n", + "31294.516068 | \n", + "<NA> | \n", + "<NA> | \n", + "84001003 | \n", + "USA | \n", + "{\"x\": -87.72207057999998, \"y\": 30.727749910000... | \n", + "
| 2 | \n", + "3 | \n", + "Alabama | \n", + "US | \n", + "2023-03-10 13:21:02 | \n", + "31.868263 | \n", + "-85.387129 | \n", + "7485 | \n", + "<NA> | \n", + "103 | \n", + "<NA> | \n", + "Barbour | \n", + "01005 | \n", + "Barbour, Alabama, US | \n", + "30320.82962 | \n", + "<NA> | \n", + "<NA> | \n", + "84001005 | \n", + "USA | \n", + "{\"x\": -85.38712859999998, \"y\": 31.868263000000... | \n", + "
| 3 | \n", + "4 | \n", + "Alabama | \n", + "US | \n", + "2023-03-10 13:21:02 | \n", + "32.996421 | \n", + "-87.125115 | \n", + "8091 | \n", + "<NA> | \n", + "109 | \n", + "<NA> | \n", + "Bibb | \n", + "01007 | \n", + "Bibb, Alabama, US | \n", + "36130.21345 | \n", + "<NA> | \n", + "<NA> | \n", + "84001007 | \n", + "USA | \n", + "{\"x\": -87.12511459999996, \"y\": 32.996420640000... | \n", + "
| 4 | \n", + "5 | \n", + "Alabama | \n", + "US | \n", + "2023-03-10 13:21:02 | \n", + "33.982109 | \n", + "-86.567906 | \n", + "18704 | \n", + "<NA> | \n", + "261 | \n", + "<NA> | \n", + "Blount | \n", + "01009 | \n", + "Blount, Alabama, US | \n", + "32345.311797 | \n", + "<NA> | \n", + "<NA> | \n", + "84001009 | \n", + "USA | \n", + "{\"x\": -86.56790592999994, \"y\": 33.982109180000... | \n", + "
| \n", + " | source_country | \n", + "area_type | \n", + "buffer_units | \n", + "buffer_units_alias | \n", + "buffer_radii | \n", + "aggregation_method | \n", + "population_to_polygon_size_rating | \n", + "apportionment_confidence | \n", + "has_data | \n", + "fem45 | \n", + "fem55 | \n", + "fem65 | \n", + "SHAPE | \n", + "
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", + "US | \n", + "RingBuffer | \n", + "esriMiles | \n", + "Miles | \n", + "1.0 | \n", + "BlockApportionment:US.BlockGroups;PointsLayer:... | \n", + "2.191 | \n", + "2.576 | \n", + "1 | \n", + "5.0 | \n", + "5.0 | \n", + "5.0 | \n", + "{\"rings\": [[[-86.64408226999996, 32.5540396153... | \n", + "
| 1 | \n", + "US | \n", + "RingBuffer | \n", + "esriMiles | \n", + "Miles | \n", + "1.0 | \n", + "BlockApportionment:US.BlockGroups;PointsLayer:... | \n", + "2.191 | \n", + "2.576 | \n", + "1 | \n", + "0.0 | \n", + "0.0 | \n", + "0.0 | \n", + "{\"rings\": [[[-87.72207057999998, 30.7422661988... | \n", + "
| 2 | \n", + "US | \n", + "RingBuffer | \n", + "esriMiles | \n", + "Miles | \n", + "1.0 | \n", + "BlockApportionment:US.BlockGroups;PointsLayer:... | \n", + "2.191 | \n", + "2.576 | \n", + "1 | \n", + "2.0 | \n", + "2.0 | \n", + "3.0 | \n", + "{\"rings\": [[[-85.38712859999997, 31.8827767082... | \n", + "
| 3 | \n", + "US | \n", + "RingBuffer | \n", + "esriMiles | \n", + "Miles | \n", + "1.0 | \n", + "BlockApportionment:US.BlockGroups;PointsLayer:... | \n", + "2.191 | \n", + "2.576 | \n", + "0 | \n", + "0.0 | \n", + "0.0 | \n", + "0.0 | \n", + "{\"rings\": [[[-87.12511459999996, 33.0109317454... | \n", + "
| 4 | \n", + "US | \n", + "RingBuffer | \n", + "esriMiles | \n", + "Miles | \n", + "1.0 | \n", + "BlockApportionment:US.BlockGroups;PointsLayer:... | \n", + "2.191 | \n", + "2.576 | \n", + "1 | \n", + "7.0 | \n", + "8.0 | \n", + "5.0 | \n", + "{\"rings\": [[[-86.56790592999992, 33.9966179736... | \n", + "
\n",
+ "\n",
+ "
\n",
+ "\n",
+ "
\n",
+ "\n",
+ "
| epoch | \n", - "train_loss | \n", - "valid_loss | \n", - "time | \n", - "
|---|---|---|---|
| 0 | \n", - "83.268150 | \n", - "69.829430 | \n", - "02:07 | \n", - "
| 1 | \n", - "64.897545 | \n", - "127.278946 | \n", - "02:12 | \n", - "
| 2 | \n", - "53.009102 | \n", - "78.505455 | \n", - "02:14 | \n", - "
| 3 | \n", - "47.769680 | \n", - "87.284019 | \n", - "02:12 | \n", - "
| 4 | \n", - "42.050095 | \n", - "65.239113 | \n", - "02:10 | \n", - "
| 5 | \n", - "38.110283 | \n", - "68.722237 | \n", - "02:11 | \n", - "
| 6 | \n", - "34.360355 | \n", - "42.288395 | \n", - "02:09 | \n", - "
| 7 | \n", - "32.069008 | \n", - "40.128288 | \n", - "02:10 | \n", - "
| 8 | \n", - "29.411419 | \n", - "39.246643 | \n", - "02:11 | \n", - "
| 9 | \n", - "28.012957 | \n", - "37.349281 | \n", - "02:20 | \n", - "
| epoch | \n", - "train_loss | \n", - "valid_loss | \n", - "accuracy | \n", - "time | \n", - "
|---|---|---|---|---|
| 0 | \n", - "0.075467 | \n", - "0.124108 | \n", - "0.961510 | \n", - "08:20 | \n", - "
| 1 | \n", - "0.068225 | \n", - "0.124054 | \n", - "0.962610 | \n", - "07:42 | \n", - "
| 2 | \n", - "0.075965 | \n", - "0.119657 | \n", - "0.964809 | \n", - "07:59 | \n", - "
| 3 | \n", - "0.069717 | \n", - "0.119751 | \n", - "0.965176 | \n", - "08:28 | \n", - "
| 4 | \n", - "0.064654 | \n", - "0.121075 | \n", - "0.965176 | \n", - "08:22 | \n", - "
| 5 | \n", - "0.072091 | \n", - "0.118563 | \n", - "0.966642 | \n", - "07:56 | \n", - "
| 6 | \n", - "0.057890 | \n", - "0.117076 | \n", - "0.964809 | \n", - "08:16 | \n", - "
| 7 | \n", - "0.060536 | \n", - "0.118210 | \n", - "0.963343 | \n", - "08:14 | \n", - "
| 8 | \n", - "0.063993 | \n", - "0.117165 | \n", - "0.965176 | \n", - "08:00 | \n", - "
| 9 | \n", - "0.065712 | \n", - "0.114718 | \n", - "0.965909 | \n", - "07:16 | \n", - "
| 10 | \n", - "0.058225 | \n", - "0.118122 | \n", - "0.965909 | \n", - "07:18 | \n", - "
| 11 | \n", - "0.058652 | \n", - "0.112426 | \n", - "0.966276 | \n", - "07:33 | \n", - "
| 12 | \n", - "0.058043 | \n", - "0.110955 | \n", - "0.967375 | \n", - "07:40 | \n", - "
| 13 | \n", - "0.050317 | \n", - "0.113226 | \n", - "0.966642 | \n", - "07:53 | \n", - "
| 14 | \n", - "0.055455 | \n", - "0.111161 | \n", - "0.969575 | \n", - "07:42 | \n", - "
| 15 | \n", - "0.056420 | \n", - "0.111660 | \n", - "0.967375 | \n", - "07:55 | \n", - "
| 16 | \n", - "0.055499 | \n", - "0.112515 | \n", - "0.967375 | \n", - "07:40 | \n", - "
| 17 | \n", - "0.054759 | \n", - "0.109142 | \n", - "0.969208 | \n", - "07:25 | \n", - "
| 18 | \n", - "0.052774 | \n", - "0.109370 | \n", - "0.970308 | \n", - "07:20 | \n", - "
| 19 | \n", - "0.056893 | \n", - "0.109999 | \n", - "0.968842 | \n", - "08:22 | \n", - "
| epoch | \n", "train_loss | \n", "valid_loss | \n", "accuracy | \n", "time | \n", "
|---|---|---|---|---|
| 0 | \n", "1.566478 | \n", "0.947836 | \n", "0.688302 | \n", "08:48 | \n", "
| 1 | \n", "0.798208 | \n", "0.607787 | \n", "0.799047 | \n", "08:53 | \n", "
| 2 | \n", "0.491763 | \n", "0.447151 | \n", "0.852585 | \n", "08:46 | \n", "
| 3 | \n", "0.328522 | \n", "0.360377 | \n", "0.868720 | \n", "08:50 | \n", "
| 4 | \n", "0.240704 | \n", "0.345637 | \n", "0.881188 | \n", "08:46 | \n", "
| 5 | \n", "0.194254 | \n", "0.285788 | \n", "0.902090 | \n", "08:44 | \n", "
| 6 | \n", "0.159634 | \n", "0.283150 | \n", "0.914558 | \n", "08:40 | \n", "
| 7 | \n", "0.151040 | \n", "0.257486 | \n", "0.916025 | \n", "08:43 | \n", "
| 8 | \n", "0.124850 | \n", "0.224945 | \n", "0.921159 | \n", "08:47 | \n", "
| 9 | \n", "0.105106 | \n", "0.268156 | \n", "0.909791 | \n", "08:39 | \n", "
| 10 | \n", "0.105818 | \n", "0.203183 | \n", "0.931060 | \n", "08:38 | \n", "
| 11 | \n", "0.090749 | \n", "0.216277 | \n", "0.929226 | \n", "08:42 | \n", "
| 12 | \n", "0.080734 | \n", "0.183624 | \n", "0.935460 | \n", "08:41 | \n", "
| 13 | \n", "0.075979 | \n", "0.212969 | \n", "0.930326 | \n", "08:39 | \n", "
| 14 | \n", "0.071708 | \n", "0.237691 | \n", "0.922992 | \n", "08:44 | \n", "
| 15 | \n", "0.062223 | \n", "0.232074 | \n", "0.928126 | \n", "08:46 | \n", "
| 16 | \n", "0.052289 | \n", "0.227401 | \n", "0.929226 | \n", "08:41 | \n", "
| 17 | \n", "0.053027 | \n", "0.222516 | \n", "0.929593 | \n", "08:39 | \n", "
| 18 | \n", "0.054064 | \n", "0.234973 | \n", "0.928493 | \n", "08:42 | \n", "
| 19 | \n", "0.058555 | \n", "0.233181 | \n", "0.929226 | \n", "08:41 | \n", "
| epoch | \n", - "train_loss | \n", - "valid_loss | \n", - "time | \n", - "
|---|---|---|---|
| 0 | \n", - "282.509796 | \n", - "284.545929 | \n", - "06:33 | \n", - "
| 1 | \n", - "219.822098 | \n", - "216.609177 | \n", - "06:11 | \n", - "
| 2 | \n", - "184.608017 | \n", - "179.594299 | \n", - "06:16 | \n", - "
| 3 | \n", - "157.201462 | \n", - "152.107513 | \n", - "06:13 | \n", - "
| 4 | \n", - "146.833130 | \n", - "143.230316 | \n", - "06:08 | \n", - "
| 5 | \n", - "142.532150 | \n", - "140.502411 | \n", - "06:06 | \n", - "
| 6 | \n", - "130.854355 | \n", - "128.107193 | \n", - "06:13 | \n", - "
| 7 | \n", - "123.135384 | \n", - "120.282646 | \n", - "06:16 | \n", - "
| 8 | \n", - "122.825447 | \n", - "121.192963 | \n", - "06:15 | \n", - "
| 9 | \n", - "113.097366 | \n", - "110.876205 | \n", - "06:09 | \n", - "
| 10 | \n", - "110.630867 | \n", - "107.839455 | \n", - "06:05 | \n", - "
| 11 | \n", - "105.668732 | \n", - "102.160103 | \n", - "06:08 | \n", - "
| 12 | \n", - "104.367531 | \n", - "101.760544 | \n", - "06:11 | \n", - "
| 13 | \n", - "96.982460 | \n", - "92.826294 | \n", - "06:10 | \n", - "
| 14 | \n", - "94.381241 | \n", - "90.038216 | \n", - "06:11 | \n", - "
| 15 | \n", - "91.442261 | \n", - "87.211021 | \n", - "06:12 | \n", - "
| 16 | \n", - "89.456108 | \n", - "84.471718 | \n", - "06:19 | \n", - "
| 17 | \n", - "88.846085 | \n", - "85.127541 | \n", - "06:02 | \n", - "
| 18 | \n", - "85.060516 | \n", - "80.282585 | \n", - "06:05 | \n", - "
| 19 | \n", - "83.723434 | \n", - "80.030220 | \n", - "06:20 | \n", - "
| 20 | \n", - "82.750427 | \n", - "78.108757 | \n", - "06:26 | \n", - "
| 21 | \n", - "81.436134 | \n", - "77.348999 | \n", - "06:27 | \n", - "
| 22 | \n", - "80.915581 | \n", - "77.150444 | \n", - "06:26 | \n", - "
| 23 | \n", - "81.231522 | \n", - "77.088852 | \n", - "06:26 | \n", - "
| 24 | \n", - "80.637024 | \n", - "76.966454 | \n", - "06:26 | \n", - "