Пример #1
0
    def test_get_df_row(self):
        """ Test pyjstat get_df_row() """

        dimensions = pyjstat.get_dimensions(self.oecd_datasets["oecd"], "label")
        first_row = ["unemployment rate", "Australia", "2003"]
        categories = pyjstat.get_df_row(dimensions[0])
        self.assertTrue(set(first_row) == set(next(categories)))
Пример #2
0
 def test_get_df_row(self):
     """Test pyjstat get_df_row().expandvars."""
     dimensions = pyjstat.get_dimensions(self.oecd_datasets['oecd'],
                                         'label')
     first_row = ['unemployment rate', 'Australia', '2003']
     categories = pyjstat.get_df_row(dimensions[0])
     self.assertTrue(set(first_row) == set(next(categories)))
Пример #3
0
    def test_get_df_row(self):
        """ Test pyjstat get_df_row() """

        dimensions = pyjstat.get_dimensions(self.oecd_datasets['oecd'],
                                            'label')
        first_row = ['Unemployment rate', 'Australia', '2003']
        categories = pyjstat.get_df_row(dimensions[0])
        self.assertTrue(set(first_row) == set(next(categories)))