Import xplain python package and interact with Object Analytics
How to import the xplain PyPi Package and how to use it to interact with the current Object analytics session.


Last updated
How to import the xplain PyPi Package and how to use it to interact with the current Object analytics session.


Last updated
'''
This example is based on the Demo instance
https://xoebp.xplain-data.com/objectexplorer/index.html
'''
import xplain
# replace url with your currentObject Analytics host
x=xplain.Xsession(url="https://xoebp.xplain-data.com")
# or if you're running your XOE on your local host,
#just use:
#x=xplain.Xsession()
df = x.open_attribute(object_name="Events",
dimension_name="Activity",
attribute_name="Activity")