File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -221,20 +221,20 @@ def CGMS2DayByDay( # noqa: C901
221221 # Create time grid (pandas 1.5.x compatible)
222222 min_time = data .index .min ()
223223 max_time = data .index .max ()
224-
224+
225225 # Use compatible floor/ceil methods for pandas 1.5.x
226- if hasattr (min_time , ' floor' ):
226+ if hasattr (min_time , " floor" ):
227227 start_time = min_time .floor ("D" )
228228 else :
229229 # Fallback for pandas 1.5.x
230230 start_time = pd .Timestamp (min_time .date ())
231-
232- if hasattr (max_time , ' ceil' ):
231+
232+ if hasattr (max_time , " ceil" ):
233233 end_time = max_time .ceil ("D" )
234234 else :
235235 # Fallback for pandas 1.5.x
236236 end_time = pd .Timestamp (max_time .date ()) + pd .Timedelta (days = 1 )
237-
237+
238238 time_grid = pd .date_range (start = start_time , end = end_time , freq = f"{ dt0 } min" )
239239 if is_iglu_r_compatible ():
240240 # remove the first time point
You can’t perform that action at this time.
0 commit comments