def test_get_cell_data(self):
        """Test get_cell_data method with various data types"""
        df = gr.Dataframe()
        test_data = [[1, 2], [3, 4]]
        test_df = pd.DataFrame({"col1": [1, 3], "col2": [2, 4]})
        assert df.get_cell_data(test_data) == [[1, 2], [3, 4]]
        assert df.get_cell_data(test_df) == [[1, 2], [3, 4]]
        assert df.get_cell_data({"data": test_data}) == [[1, 2], [3, 4]]

        styled_df = test_df.style
        styled_df.hide(axis=1, subset=["col2"])
        assert df.get_cell_data(styled_df) == [[1], [3]]
Test get_cell_data method with various data types
test/components/test_dataframe.py