File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1212"""
1313
1414__appname__ = "meteostat"
15- __version__ = "1.7.1 "
15+ __version__ = "1.7.2 "
1616
1717from .interface .base import Base
1818from .interface .timeseries import TimeSeries
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ def filter_time(
3434 # Get time index
3535 time = df .index .get_level_values ("time" )
3636
37+ # If no time index, return original DataFrame
38+ if len (time ) == 0 :
39+ return df
40+
3741 # Filter & return
3842 return df .loc [(time >= start ) & (time <= end )] if start and end else df
3943
Original file line number Diff line number Diff line change 1515# Setup
1616setup (
1717 name = "meteostat" ,
18- version = "1.7.1 " ,
18+ version = "1.7.2 " ,
1919 author = "Meteostat" ,
20202121 description = "Access and analyze historical weather and climate data with Python." ,
You can’t perform that action at this time.
0 commit comments