def switch_to_global(self):
        self.types_view.hide()
        self.globalStats_view.show()

        self.df_2 = DataFrame_Viewer.Show_Datas.stock_df(
            self)  # Get DataFrame selected from Reglin_Page

        df_describe = self.df_2.describe()
        model = DataFrame_Viewer.PandasModel(df_describe)
        self.globalStats_view.setModel(model)
    def switch_to_types(self):
        self.globalStats_view.hide()
        self.types_view.show()

        self.df = DataFrame_Viewer.Show_Datas.stock_df(
            self)  # Get DataFrame selected from Reglin_Page

        df_types = pd.DataFrame(self.df.dtypes)
        model = DataFrame_Viewer.PandasModel(df_types)
        self.types_view.setModel(model)