Skip to content
Snippets Groups Projects

Add warning if the basket is empty for a connector

1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
+ 5
0
@@ -149,6 +149,11 @@ class shopping_client:
if len(items):
converted_basket[connector.name] = pd.concat(items, axis=1)
else:
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 {
name: data.to_frame().T if data.ndim < 2 else data.T
Loading