Skip to content

Commit c965987

Browse files
committed
Expand the exception for the Pandas version to avoid the future warning on empty dfs
1 parent 6db9634 commit c965987

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

simbench/converter/csv_pp_converter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,6 @@ def _copy_data(input_data, output_data):
12061206
output_names = _csv_table_pp_dataframe_correspondings(list, out_is_pp)[
12071207
int(out_is_pp)
12081208
]
1209-
12101209
for corr_str, output_name in zip(corr_strings, output_names):
12111210
if corr_str in input_data.keys() and input_data[corr_str].shape[0]:
12121211
cols_to_copy = list(
@@ -1217,7 +1216,7 @@ def _copy_data(input_data, output_data):
12171216
]
12181217
)
12191218
)
1220-
if pd.__version__.startswith("2.2."):
1219+
if version.parse(pd.__version__) >= version.parse("2.2.0"):
12211220
with warnings.catch_warnings():
12221221
warnings.simplefilter(
12231222
action="ignore", category=FutureWarning

0 commit comments

Comments
 (0)