diff --git a/sdks/python/apache_beam/runners/interactive/display/pcoll_visualization.py b/sdks/python/apache_beam/runners/interactive/display/pcoll_visualization.py index d767a15a345d..4bf2e8984634 100644 --- a/sdks/python/apache_beam/runners/interactive/display/pcoll_visualization.py +++ b/sdks/python/apache_beam/runners/interactive/display/pcoll_visualization.py @@ -420,7 +420,10 @@ def _display_dataframe(self, data, update=None): format_window_info_in_dataframe(data) # Convert the dataframe into rows, each row looks like # [column_1_val, column_2_val, ...]. - rows = data.applymap(lambda x: str(x)).to_dict('split')['data'] + with warnings.catch_warnings(): + warnings.filterwarnings( + "ignore", message=".*DataFrame.applymap has been deprecated.*") + rows = data.applymap(lambda x: str(x)).to_dict('split')['data'] # Convert each row into dict where keys are column index in the datatable # to be rendered and values are data from the dataframe. Column index 0 is # left out to hold the int index (not part of the data) from dataframe.