Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix additional FutureWarning issues #1499

Merged
merged 1 commit into from
Jan 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions user_tools/src/spark_rapids_tools/tools/qualx/preprocess.py
Original file line number Diff line number Diff line change
@@ -615,7 +615,7 @@ def combine_tables(table_name: str) -> pd.DataFrame:
['input_bytesRead_sum', 'input_bytesRead_cache']
].max(axis=1)
full_tbl = full_tbl.drop(columns=['input_bytesRead_cache'])
full_tbl['cache_hit_ratio'].fillna(0.0, inplace=True)
full_tbl.fillna({'cache_hit_ratio': 0.0}, inplace=True)
else:
full_tbl['cache_hit_ratio'] = 0.0

@@ -1162,7 +1162,8 @@ def load_qual_csv(
qual_csv = [os.path.join(q, csv_filename) for q in qual_dirs]
df = None
if qual_csv:
df = pd.concat([pd.read_csv(f) for f in qual_csv])
dfs = [pd.read_csv(f) for f in qual_csv]
df = pd.concat([df for df in dfs if not df.empty])
if cols:
df = df[cols]
return df
Loading