Skip to content

Commit

Permalink
Various bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
benjello committed Oct 2, 2023
1 parent 69ce941 commit 8d5d425
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
recursive-include openfisca_survey_manager/config_templates *.ini
recursive-include openfisca_survey_manager/config_files_templates *.ini
include openfisca_survey_manager/tests/data_files/config_template.ini
recursive-include openfisca_survey_manager/assets *.csv
10 changes: 8 additions & 2 deletions openfisca_survey_manager/coicop.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def build_coicop_level_nomenclature(level, keep_code = False, to_csv = False):
log.info("Error when reading nomenclature coicop source data for level {}".format(level))
raise e

data_frame.reset_index(inplace = True)
data_frame.reset_index(inplace = True, drop = True)
data_frame.rename(columns = {0: 'code_coicop', 1: 'label_{}'.format(level[:-1])}, inplace = True)
data_frame = data_frame.iloc[2:].copy()

Expand Down Expand Up @@ -75,7 +75,13 @@ def build_raw_coicop_nomenclature():
build_coicop_level_nomenclature(level), build_coicop_level_nomenclature(next_level),
on = on, left_index = False, right_index = False)
else:
coicop_nomenclature = pd.merge(coicop_nomenclature, build_coicop_level_nomenclature(next_level), on = on)
coicop_nomenclature = pd.merge(
coicop_nomenclature,
build_coicop_level_nomenclature(next_level),
on = on,
left_index = False,
right_index = False,
)

coicop_nomenclature = coicop_nomenclature[
['code_coicop']
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

setup(
name = 'OpenFisca-Survey-Manager',
version = '1.1.7',
version = '1.1.8',
author = 'OpenFisca Team',
author_email = '[email protected]',
classifiers = [classifier for classifier in classifiers.split('\n') if classifier],
Expand Down

0 comments on commit 8d5d425

Please sign in to comment.