BUG: ItemCollection.to_dataframe()
excludes columns if they don't have any data in SharePoint
#80
Labels
ItemCollection.to_dataframe()
excludes columns if they don't have any data in SharePoint
#80
Overview
When querying a set of items from a SharePoint list if each of the items returned by a query are missing values for a column that column is excluded from the dataframe returned by
ItemCollection.to_dataframe()
Steps to Reproduce
Steps to reproduce the behavior:
SharePoint.get_list()
SiteList.get_items()
to retrieve a set of items for which one column is blank for every itemItemCollection.to_dataframe()
to convert the collection returned to a dataframeExpected Behavior
The resulting dataframe should include all fields passed to
SiteList.get_items()
even if there are no values set.Screenshots
If applicable, add screenshots to help explain your problem.
Additional Context
The columns aren't returned because
O365
excludes columns without a value from theItems.fields
attribute. They need to be added either during the init step ofItemCollection
or during theto_dataframe()
method.The text was updated successfully, but these errors were encountered: