Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: "None of ['company_id', 'time_frame', 'scope'] are in the columns" #253

Open
trev0rwright opened this issue May 25, 2021 · 2 comments

Comments

@trev0rwright
Copy link

trev0rwright commented May 25, 2021

Hello,
I am trying to deploy the tool on a portfolio of assets with only intensity targets. Columns definitely have contents in them when uploaded to 'provider'. I have set the intensity_metric to 'other' for all assets. Yet seeing this error when I run temperature_score.calculate: KeyError: "None of ['company_id', 'time_frame', 'scope'] are in the columns". Wondering if issue is with interfaces.py IDataProviderTarget?

Have visited this, (#250) but since I have intensity_metric = to 'other' for all assets, not sure why I am still seeing this error. Interestingly, when I remove 'other' from intensity_metric (leave blank), temperature_score.calculate() will successfully run, but every asset receives the default temperature score.

Thanks for considering and really appreciate any support.

By way of additional details:

  • I have checked base/end_year columns to make sure no issues with weird dates. All targets have end_year > 2021.
  • I have checked Scope column - all are "S1+S2"
  • each unique company_id is represented in PortfolioTemplate and DataProviderTemplate tabs. While every company_id is unique, I do have some repeat companies (reflecting different portfolios holding same company).
  • Doing this all locally, and already have had previous success with my own test/sample data with my local notebook.
@kleelf
Copy link

kleelf commented Aug 17, 2021

Hello,
I know it has been a while, but did you manage to fix your issue?
I have a similar problem.

Best regards

@EngagedTracking
Copy link

Hi, did you run before calculation TargetProtocol.process()?
Or did you use this function before SBTi.utils.get_data(data_providers, companies)?

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

No branches or pull requests

3 participants