Skip to content

Eurostat#25

Open
umbertopassanisi wants to merge 2 commits into
stagingfrom
feature/eurostat
Open

Eurostat#25
umbertopassanisi wants to merge 2 commits into
stagingfrom
feature/eurostat

Conversation

@umbertopassanisi

Copy link
Copy Markdown
Collaborator

No description provided.


logging.basicConfig(filename='error.log', format='%(asctime)s %(module)s %(levelname)s: %(message)s',
level=logging.INFO)
logger = logging.getLogger(__name__)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 3 to 9 can be replaced by just two blank lines if we are not using logging?

}

HICP = ['ZCPIH', 'ZCPIXEF', 'ZCPIENG', 'ZCPIFOO', 'ZCPIUNF', 'ZCPINEG',
'ZCPISER']

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can add a verbose name for the group to the dictionary?

calc = EurostatInput()
result = calc.hicp_quarterly(filename,sheet)

self.result = result No newline at end of file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blank line at the end of file

quarterly = calc.dataframe_sampler(dataframe,'Q')
annually = calc.dataframe_sampler(dataframe,'A')

self.result = quarterly

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too many blank lines at the end of file

@e

e commented Sep 21, 2018

Copy link
Copy Markdown
Member

Also, maybe add some assertions to the tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants