def test_dataframe_hidden_columns(self):
        """Test that hidden columns are properly excluded from the output"""
        component = gr.Dataframe()
        df = pd.DataFrame(
            {"a": [1, 2, 3], "b": [4, 5, 6], "color": ["red", "blue", "green"]}
        )
        styled_df = df.style.hide(axis=1, subset=["color"])
        output = component.postprocess(styled_df).model_dump()
        assert output == {
            "data": [
                [1, 4],
                [2, 5],
                [3, 6],
            ],
            "headers": ["a", "b"],
            "metadata": {
                "display_value": [
                    ["1", "4"],
                    ["2", "5"],
                    ["3", "6"],
                ],
                "styling": [
                    ["", ""],
                    ["", ""],
                    ["", ""],
                ],
            },
        }
Test that hidden columns are properly excluded from the output
test/components/test_dataframe.py