Skip to content

Commit

Permalink
Bug fix: ensure split_data returns a DataFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianschoeppach committed Nov 5, 2024
1 parent 037edcb commit 57db786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/perovskite_tandem_database/parsers/tandemparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def split_data(data, delimiter='|'):
expanded_df = pd.DataFrame(expanded_data.tolist(), index=data.index)
expanded_df.columns = [f'{data.name}_{i}' for i in range(max_len)]
else:
expanded_df = data
expanded_df = pd.DataFrame(data)
return expanded_df

else:
Expand Down

0 comments on commit 57db786

Please sign in to comment.