Skip to content

Commit

Permalink
Update tools.py
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
jzsmoreno committed Dec 9, 2024
1 parent e1fecd4 commit 9ec23ee
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions merge_by_lev/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,16 @@ def check_empty_df(
Tuple[List[pd.DataFrame], List[str]] :
Verified dataframes and names.
"""
return [
(df, name)
for df, name in zip(dfs, names)
if len(df.columns) > num_cols and len(df) > num_cols
]
verified_dfs = []
verified_names = []

# Iterar sobre los DataFrames y nombres
for df, name in zip(dfs, names):
if len(df.columns) > num_cols and len(df) > num_cols:
verified_dfs.append(df)
verified_names.append(name)

return verified_dfs, verified_names


if __name__ == "__main__":
Expand Down

0 comments on commit 9ec23ee

Please sign in to comment.