Skip to content

Commit e29a049

Browse files
Apply suggestions from code review
Use single list instead of nested lists Co-authored-by: Emanuel Schmid <51439563+emanuel-schmid@users.noreply.github.com>
1 parent 184f6c0 commit e29a049

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

climada/util/finance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ def download_world_bank_indicator(
227227
# Update the data
228228
pages = json_data[0]["pages"]
229229
page = page + 1
230-
raw_data.append(json_data[1])
230+
raw_data.extend(json_data[1])
231231

232232
# Create dataframe
233-
data = pd.concat([pd.DataFrame.from_records(rec) for rec in raw_data])
233+
data = pd.DataFrame.from_records(raw_data)
234234

235235
# Parse dates
236236
if parse_dates:

0 commit comments

Comments
 (0)