Skip to content

Commit

Permalink
Add back check for null columns
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGhenis committed Feb 27, 2021
1 parent 814bcec commit 6e9826b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scf/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def load(
:rtype: Union[pd.DataFrame, mdf.MicroDataFrame]
"""
# Make cols a list if a single column is passed.
columns = mdf.listify(columns)
if columns is not None:
columns = mdf.listify(columns)
# If years is a single year rather than a list, don't use a loop.
if isinstance(years, int):
res = load_single_scf(years, columns)
Expand Down

0 comments on commit 6e9826b

Please sign in to comment.