<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Panda dataframe created from search result missing values in privateUrl field!? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/panda-dataframe-created-from-search-result-missing/m-p/1204383#M7650</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/314374"&gt;@LaszloCsunderlik1&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe I am experiencing the same problem, but missing values like size, and who knows what else. I have performed steps following this doco:&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/samples/inventory-organizational-content/\" target="_blank"&gt;https://developers.arcgis.com/python/samples/inventory-organizational-content/\&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;# Connect to GIS and import modules
from arcgis.gis import GIS
gis = GIS("home", verify_cert=False)
import arcgis
import datetime as dt
import pandas as pd
from IPython.display import display
import time
import csv
import os


org_users = gis.users.search()
print(f'{len(org_users)} users found')
org_users[:3]

org_content = []

for user in org_users:
    qe = f"owner: {user.username}"
    user_content = gis.content.advanced_search(query=qe, max_items=-1)['results']
    org_content += user_content
    
print(f"{len(org_content)} items found in org")

content_df = pd.DataFrame(org_content)
content_df.head()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result: see attached image.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Observation: it only writes values for all fields on the first row - whatever is at the top of the list/dict that's &lt;EM&gt;written(?)&lt;/EM&gt; into the data frame (I changed the order to test this)&lt;/P&gt;&lt;P&gt;Observation2: is this a glitch with the python version? I think the info to provide on this is as follows:&amp;nbsp;&lt;BR /&gt;I'm using py3 and pandas 1.2.3&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going around this problem by auditing portal content with dictionaries, but would like to know what happened here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Nina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2022 02:30:25 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-08-19T02:30:25Z</dc:date>
    <item>
      <title>Panda dataframe created from search result missing values in privateUrl field!?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/panda-dataframe-created-from-search-result-missing/m-p/816252#M2664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The&amp;nbsp;gis.content.search gives back a list about the given query. After I create from this search result variable a panda dataframe, it gives me the option to access a lot of information about the given services. I would like to call these services with a 3rd party application based on the dataframe privateUrl field. But this field just populates the latest service and for the others the value is NaN.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone facing with this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pandas dataframe‌&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2020 15:46:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/panda-dataframe-created-from-search-result-missing/m-p/816252#M2664</guid>
      <dc:creator>LaszloCsunderlik1</dc:creator>
      <dc:date>2020-07-30T15:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Panda dataframe created from search result missing values in privateUrl field!?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/panda-dataframe-created-from-search-result-missing/m-p/1204383#M7650</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/314374"&gt;@LaszloCsunderlik1&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe I am experiencing the same problem, but missing values like size, and who knows what else. I have performed steps following this doco:&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/samples/inventory-organizational-content/\" target="_blank"&gt;https://developers.arcgis.com/python/samples/inventory-organizational-content/\&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;# Connect to GIS and import modules
from arcgis.gis import GIS
gis = GIS("home", verify_cert=False)
import arcgis
import datetime as dt
import pandas as pd
from IPython.display import display
import time
import csv
import os


org_users = gis.users.search()
print(f'{len(org_users)} users found')
org_users[:3]

org_content = []

for user in org_users:
    qe = f"owner: {user.username}"
    user_content = gis.content.advanced_search(query=qe, max_items=-1)['results']
    org_content += user_content
    
print(f"{len(org_content)} items found in org")

content_df = pd.DataFrame(org_content)
content_df.head()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result: see attached image.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Observation: it only writes values for all fields on the first row - whatever is at the top of the list/dict that's &lt;EM&gt;written(?)&lt;/EM&gt; into the data frame (I changed the order to test this)&lt;/P&gt;&lt;P&gt;Observation2: is this a glitch with the python version? I think the info to provide on this is as follows:&amp;nbsp;&lt;BR /&gt;I'm using py3 and pandas 1.2.3&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going around this problem by auditing portal content with dictionaries, but would like to know what happened here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Nina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 02:30:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/panda-dataframe-created-from-search-result-missing/m-p/1204383#M7650</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-08-19T02:30:25Z</dc:date>
    </item>
  </channel>
</rss>

