def test_merge_datasets_by_closest_weather_station(self): df_weather = weather.NOAAWeather() nasa_firms = nasa_wildfires.NASAFIRMS() df = merge_datasets_by_closest_weather_station( df_weather, "DATE", nasa_firms, "acq_date" ) self.assertIsInstance(df, pd.DataFrame)
def test_merge_datasets_by_departements(self): df_weather = weather.NOAAWeather() df_fires = wildfires.BDIFFHistory() df = merge_datasets_by_departements( df_weather, "DATE", "code", df_fires, "date", "Département", "left" ) self.assertIsInstance(df, pd.DataFrame)
def test_noaaweather(self): ds = weather.NOAAWeather() self.assertIsInstance(ds, pd.DataFrame)