Skip to content

Commit

Permalink
+ support column-wise analysis for DataFrame column of list type
Browse files Browse the repository at this point in the history
  • Loading branch information
HYLcool committed Nov 29, 2023
1 parent eb02bfe commit dd465e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data_juicer/analysis/column_wise_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def analyse(self, show_percentiles=False, show=False):
fig = plt.figure(figsize=(rec_width, rec_height),
layout='constrained')
subfigs = fig.subfigures(rec_row, rec_col, wspace=0.01)
for i, column_name in tqdm(enumerate(columns), desc='Column'):
for i, column_name in tqdm(enumerate(columns.to_list()),
desc='Column'):
data = self.stats[column_name]
# explode data to flatten inner list
data = data.explode().infer_objects()
Expand Down

0 comments on commit dd465e8

Please sign in to comment.