Skip to content

Commit

Permalink
fix return datatype in _sample_with_metadata (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
MooooCat committed Feb 27, 2024
1 parent f1241b5 commit ad3d188
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sdgx/models/LLM/single_table/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,11 @@ def _sample_with_metadata(self, count, *args, **kwargs):
# Update the remaining count
remaining_cnt = remaining_cnt - current_cnt

return count # Return the input count
self._result_list.append(result)

# return result in pd.DataFrame
final_columns = self.columns + self.off_table_features
return pd.DataFrame(self._result_list, columns=final_columns)

def _sample_with_data(self, count, *args, **kwargs):
"""
Expand Down

0 comments on commit ad3d188

Please sign in to comment.