Skip to content

Commit

Permalink
Default to just one row before and after for around function
Browse files Browse the repository at this point in the history
  • Loading branch information
g-gundam committed Dec 25, 2024
1 parent 7ad36c9 commit a9c9793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/explore.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ using DocStringExtensions
Return a few rows before and after the given timestamp `ts`
in the DataFrame `df`.
"""
function around(ts::DateTime, df::AbstractDataFrame; before=4, after=4, ts_field=:ts)
function around(ts::DateTime, df::AbstractDataFrame; before=1, after=1, ts_field=:ts)
i = 1
for row in eachrow(df)
if row[ts_field] == ts
Expand Down

0 comments on commit a9c9793

Please sign in to comment.