Skip to content

Commit

Permalink
step 32 diff correction
Browse files Browse the repository at this point in the history
  • Loading branch information
tdpetrou committed Mar 24, 2019
1 parent 30ad97d commit fdd9fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas_cub_final/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,9 @@ def diff(self, n=1):
A DataFrame
"""
def func(values):
values = values.astype('float')
values_shifted = np.roll(values, n)
values = values - values_shifted
values = values.astype('float')
if n >= 0:
values[:n] = np.NAN
else:
Expand Down

0 comments on commit fdd9fb8

Please sign in to comment.