5dc3059a5466636aa2becd2e42c3339a723db7fa,lib/tests/streamlit/dataframe_styling_test.py,DataFrameStylingTest,test_format,#DataFrameStylingTest#,48

Before Change


        df = pd.DataFrame({"A": values})
        self._dg.dataframe(df.style.format("{:.2%}"))

        proto_df = self._get_element().data_frame
        self._assert_column_display_values(proto_df, 0, display_values)

    def test_css_styling(self):
        Tests DataFrame.style css styling

After Change


        get_delta = getattr(self._dg, element)
        get_delta(df.style.format("{:.2%}"))

        proto_df = getattr(self._get_element(), proto)
        self._assert_column_display_values(proto_df, 0, display_values)

    @parameterized.expand([
        ("dataframe", "data_frame"),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: streamlit/streamlit
Commit Name: 5dc3059a5466636aa2becd2e42c3339a723db7fa
Time: 2019-06-05
Author: rhone.j@gmail.com
File Name: lib/tests/streamlit/dataframe_styling_test.py
Class Name: DataFrameStylingTest
Method Name: test_format


Project Name: streamlit/streamlit
Commit Name: 5dc3059a5466636aa2becd2e42c3339a723db7fa
Time: 2019-06-05
Author: rhone.j@gmail.com
File Name: lib/tests/streamlit/dataframe_styling_test.py
Class Name: DataFrameStylingTest
Method Name: test_unstyled_has_no_style


Project Name: streamlit/streamlit
Commit Name: 5dc3059a5466636aa2becd2e42c3339a723db7fa
Time: 2019-06-05
Author: rhone.j@gmail.com
File Name: lib/tests/streamlit/dataframe_styling_test.py
Class Name: DataFrameStylingTest
Method Name: test_add_styled_rows


Project Name: streamlit/streamlit
Commit Name: 5dc3059a5466636aa2becd2e42c3339a723db7fa
Time: 2019-06-05
Author: rhone.j@gmail.com
File Name: lib/tests/streamlit/dataframe_styling_test.py
Class Name: DataFrameStylingTest
Method Name: test_add_styled_rows_to_unstyled_rows


Project Name: streamlit/streamlit
Commit Name: 5dc3059a5466636aa2becd2e42c3339a723db7fa
Time: 2019-06-05
Author: rhone.j@gmail.com
File Name: lib/tests/streamlit/dataframe_styling_test.py
Class Name: DataFrameStylingTest
Method Name: test_css_styling


Project Name: streamlit/streamlit
Commit Name: 5dc3059a5466636aa2becd2e42c3339a723db7fa
Time: 2019-06-05
Author: rhone.j@gmail.com
File Name: lib/tests/streamlit/dataframe_styling_test.py
Class Name: DataFrameStylingTest
Method Name: test_add_unstyled_rows_to_styled_rows