code: def load_turbine_data_from_oedb():
      r
      # url of OpenEnergy Platform that contains the oedb
      oep_url = 'http://oep.iks.cs.ovgu.de/'
      # location of data
      schema = 'model_draft'
      table = 'openfred_windpower_powercurve'
      # load data
      result = requests.get(
          oep_url + '/api/v0/schema/{}/tables/{}/rows/?'.format(
              schema, table), )
      if not result.status_code == 200:
          raise ConnectionError("Database connection not successful. "
                                "Response: [{}]".format(result.status_code))
      # extract data to data frame
      turbine_data = pd.DataFrame(result.json())
      # store data as hdf5
      filename = os.path.join(os.path.dirname(__file__), 'data',
                              'turbine_data_oedb.h5')
      with pd.HDFStore(filename) as hdf_store:
          hdf_store.put('turbine_data', turbine_data)
      logging.debug("Turbine data is fetched from oedb and saved "
                    "to {}".format(filename))
      return turbine_data
docs: r"""
      Loads turbine data from the OpenEnergy Database (oedb).
  
      Turbine data is saved to `filename` for offline usage of windpowerlib.
  
      Returns
      -------
      turbine_data : pd.DataFrame
          Contains turbine data of different turbines such as 'manufacturer',
          'turbine_type', nominal power ('installed_capacity_kw').