Skip to content

Commit fd87e4f

Browse files
committed
Merge pull request #4111 from cpcloud/data-dot-py-cleanup
CLN: use how="all" in data.py so that things that are not nan in other columns are kept
2 parents 0523dc6 + 04cc377 commit fd87e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ def get_near_stock_price(self, above_below=2, call=True, put=False,
757757

758758
get_range = slice(start_index - above_below,
759759
start_index + above_below + 1)
760-
chop = df[get_range].dropna()
760+
chop = df[get_range].dropna(how='all')
761761
chop.reset_index(inplace=True)
762762
data[nam] = chop
763763
return [data[nam] for nam in to_ret]

0 commit comments

Comments
 (0)