def get_bounds(self):
start, end = None, None<EOL>if len(self._weather_series) == <NUM_LIT:0>:<EOL><INDENT>return start, end<EOL><DEDENT>for i in (<NUM_LIT:0>, -<NUM_LIT:1>):<EOL><INDENT>if self.has_tuple_instants:<EOL><INDENT>row = self._weather_series.iloc[i, :]<EOL>instant = dt.datetime(row["<STR_LIT>"], row["<STR_LIT>"], row["<STR_LIT>"], row["<STR_LIT>"], row["<STR_LIT>"])<EOL><DEDENT>else:<EOL><INDENT>instant = self._weather_series.index[i].to_pydatetime()<EOL><DEDENT>if i == <NUM_LIT:0>:<EOL><INDENT>start = instant<EOL><DEDENT>else:<EOL><INDENT>end = instant<EOL><DEDENT><DEDENT>return start, end<EOL>
Returns
-------
(start, end)

Datetime instants of beginning and end of data. If no data, will be: (None, None).