Skip to content
Snippets Groups Projects
Commit 7114987b authored by Yan Grange's avatar Yan Grange :wave:
Browse files

clean up how warning looks

parent 9b1b9df2
Branches
No related tags found
2 merge requests!10Add warning if the basket is empty for a connector,!9Check items before concatenating
...@@ -150,7 +150,10 @@ class shopping_client: ...@@ -150,7 +150,10 @@ class shopping_client:
if len(items): if len(items):
converted_basket[connector.name] = pd.concat(items, axis=1) converted_basket[connector.name] = pd.concat(items, axis=1)
else: else:
warn(f"Connector {connector.name} specified but no data found for it in shopping basket. Result will not contain an entry named {connector.name}.") warn(
f"Connector {connector.name} specified but no data found for it "
f"in shopping basket. Result will not contain an entry named {connector.name}."
)
return { return {
name: data.to_frame().T if data.ndim < 2 else data.T name: data.to_frame().T if data.ndim < 2 else data.T
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment