Select to view content in your preferred language

Documentation for **kwargs GeoAccessor to_table method

212
2
Jump to solution
4 weeks ago
TylerT
by
Occasional Contributor III

The GeoAccessor documentation mentions the to_table accepts additional keywords **kwargs.  Is there any further documentation on what the kwargs are?  Thank you.  Tyler

from https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#geoaccessor
TylerT_0-1719441908954.png

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

 

If you go into the module files, particularly /features/geo/_accessor.py, you can find the function defined there. The only keyword not given explicitly in the def line is sanitize_columns, so it seems the keywords are all documented in the page in your screenshot.

def to_table(self, location, overwrite=True, **kwargs):

# rest of stuff goes here

    **{
        "geo": self,
        "location": location,
        "overwrite": overwrite,
        "sanitize_columns": sanitize_columns,
    },

 

- Josh Carlson
Kendall County GIS

View solution in original post

0 Kudos
2 Replies
jcarlson
MVP Esteemed Contributor

 

If you go into the module files, particularly /features/geo/_accessor.py, you can find the function defined there. The only keyword not given explicitly in the def line is sanitize_columns, so it seems the keywords are all documented in the page in your screenshot.

def to_table(self, location, overwrite=True, **kwargs):

# rest of stuff goes here

    **{
        "geo": self,
        "location": location,
        "overwrite": overwrite,
        "sanitize_columns": sanitize_columns,
    },

 

- Josh Carlson
Kendall County GIS
0 Kudos
DanPatterson
MVP Esteemed Contributor

C:\... install folder ... \bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\features\geo\_accessor.py

line  2740  just imports   

from arcgis.features.geo._io.fileops import to_table

and there are no other args there other than those from the leading call

Addendum

Just because **kwargs is present in a function doesn't mean that there has to be any, it can just be a placeholder incase a function, whether directly, or passed through, might need a keyword argument (and not a positional argument)

 

 


... sort of retired...