Skip to content

Commit

Permalink
use .loc for setting slice
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jul 20, 2021
1 parent b38e9ca commit 9bc3bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adcircpy/forcing/winds/best_track.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def __str__(self):

for column in dataframe.select_dtypes(include=['float']):
if column not in ['latitude', 'longitude']:
dataframe[column] = dataframe[column].round(0).astype('Int64', copy=False)
dataframe.loc[:, column] = dataframe[column].round(0).astype('Int64', copy=False)

for i, (_, row) in enumerate(dataframe.iterrows()):
line = []
Expand Down

0 comments on commit 9bc3bc7

Please sign in to comment.