Best Of
Re: Pydomo: Error with 'ds_get'
@ellibot has some experience with Python. He may be able to help you.
Re: Pydomo: Error with 'ds_get'
Not sure on this one actually!
Help me @GrantSmith-wan Kenobi, you're my only hope!
Re: Pydomo: Error with 'ds_get'
How important is it to keep the special characters in the dataset? If ds_get() can't change its encoding (which it seems like maybe it can't?) you could do some ETL before going to pydomo to strip out all the characters that don't work with UTF-8 encoding.
I think you could regex replace this with blanks to remove all non-unicode characters: "[^\\u0000-\\u007f]+"
Re: Pydomo: Error with 'ds_get'
the ds_get function doesn't allow for any encoding other than the default utf8. Two options here:
- Override the Domo class and write your own ds_get function to handle the latin1 encoding you have
- Bypass using the ds_get and just call the dataset.data_export function to return the data, then call pandas read_csv on your csv string and pass in the encoding='latin1' as a parameter.
Here's a modified ds_get function:
def ds_get(self, dataset_id, encoding='utf-8'):
"""
Export data to pandas Dataframe
>>> df = domo.ds_get('80268aef-e6a1-44f6-a84c-f849d9db05fb')
>>> print(df.head())
:Parameters:
- `dataset_id`: id of a dataset (str)
:Returns:
pandas dataframe
"""
csv_download = self.datasets.data_export(dataset_id, include_csv_header=True)
content = StringIO(csv_download)
df = read_csv(content, encoding=encoding)
# Convert to dates or datetimes if possible
for col in df.columns:
if df[col].dtype == 'object':
try:
df[col] = to_datetime(df[col])
except ValueError:
pass
except TypeError:
pass
return df
Re: Issues with Shopify Connector
The custom app version does indeed work, it's just a matter of swapping out all your datasets on the cards and dataflows.
Documentation on Domo's Shopify Custom App connector:
Shopify's documentation on creating a custom app and getting an access token:
Re: How do i insert a line break in a cell in Ag Gid Domo table?
Have you tried utilizing <br> instead of \n? Is it actually displaying \n or just not doing a new line?
Re: Connecting to Sharepoint for Spreadsheets
I use the Microsoft SharePoint Online Rest Connector to connect several Excel files to our Domo instance. You can use the scheduling section of the connector to have it pull data in from the spreadsheet as often as you would like. You will want to read through the KB article for this connector as it requires some initial work in the Azure Portal. Once that is done once, you can connect to any number of Excel files. Here's the KB link: https://domo-support.domo.com/s/article/360043436773?language=en_US
Re: Domo IDEAs Conference - Beast Modes - Rolling Averages
Here's a link to Grant's entire presentation!



