Skip to content

Commit

Permalink
remove bad import
Browse files Browse the repository at this point in the history
  • Loading branch information
kmax12 committed Aug 17, 2022
1 parent 7b08168 commit 2e24833
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions isodata/isone.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import math
import re
from heapq import merge
from tkinter import E

import pandas as pd
import requests
Expand Down Expand Up @@ -207,7 +206,12 @@ def get_latest_lmp(self, market: str, locations: list = None):
else:
raise RuntimeError("LMP Market is not supported")

data = self._process_lmp(data, market, self.default_timezone, locations)
data = self._process_lmp(
data,
market,
self.default_timezone,
locations,
)
return data

def get_lmp_today(self, market: str, locations: list = None, include_id=False):
Expand Down Expand Up @@ -367,7 +371,11 @@ def _process_lmp(self, data, market, timezone, locations, include_id=False):
]

if "Location Id" in data.columns:
data = data.merge(location_mapping, how="left", on="Location Id")
data = data.merge(
location_mapping,
how="left",
on="Location Id",
)
elif "Location" in data.columns:
data = data.merge(location_mapping, how="left", on="Location")

Expand Down

0 comments on commit 2e24833

Please sign in to comment.