Skip to content

Commit

Permalink
Update _simpler_sf.py
Browse files Browse the repository at this point in the history
Fixed a bug in _detect_fields()
  • Loading branch information
benvigano authored May 19, 2023
1 parent aa425cd commit 1e9d3f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simpler_sf/_simpler_sf.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _smart_query(
output_df = pd.concat(dfs)

# If the query didn't output any records, add the columns for output consistency
if len(dfs) == 0:
if output_df.shape[0] == 0:
# Determine the columns from the query
output_df = pd.DataFrame(columns=_determine_fields(query))
else:
Expand Down

0 comments on commit 1e9d3f8

Please sign in to comment.