Skip to content

Commit

Permalink
Specify dtype for REAL
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Oct 8, 2024
1 parent 2ce1d41 commit 0e23365
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ert/config/design_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,7 @@ def _read_excel(
:raises: ValueError if file not loaded correctly
"""
dframe: pd.DataFrame = pd.read_excel(
file_name,
sheet_name,
usecols=usecols,
header=header,
file_name, sheet_name, usecols=usecols, header=header, dtype={"REAL": int}
)
return dframe.dropna(axis=1, how="all")

Expand Down

0 comments on commit 0e23365

Please sign in to comment.