pd.DataFrame¶
Extended methods for the pd.DataFrame class:
-
eemont.dataframe.
toEEFeatureCollection
(self, latitude=None, longitude=None)[source]¶ Converts a pd.DataFrame object into an ee.FeatureCollection object. If lat/lon coordinates are available, the Data Frame can be converted into a Feature Collection with an associated geometry.
- Parameters
self (pd.DataFrame [this]) – Data Frame to convert into a Feature Collection.
latitude (string) – Name of a latitude column, if available. Coupled with a longitude column, an ee.Geometry.Point is created and associated to each Feature.
longitude (string) – Name of a longitude column, if available. Coupled with a latitude column, an ee.Geometry.Point is created and associated to each Feature.
- Returns
Data Frame converted into a Feature Collection.
- Return type
ee.FeatureCollection