Using data with Pandas¶
The data module provides some function for using OpenNGC data with Pandas. Pandas is a powerful Python tool for data analysis and manipulation. OpenNGC data is provided as Pandas’ DataFrames.
Public Methods¶
- pyongc.data.all() DataFrame ¶
Returns all data in the database.
Useful for subsequent custom data filtering.
- pyongc.data.clusters(globular: bool = True, open: bool = True, other: bool = False, extra_ids: bool = False, notngc: bool = False) Optional[DataFrame] ¶
Returns data for star clusters.
- Parameters:
globular – fetch data for globular clusters
open – fetch data for open clusters
other – fetch data for star associations and Cl+N types
extra_ids – adds extra identifiers and common names to the output
notngc – if set to True return objects from the addendum catalog, otherwise return objects from the main NGC/IC catalog only
- pyongc.data.galaxies(extra_ids: bool = False, notngc: bool = False) DataFrame ¶
Returns data for all galaxies in the database.
- Parameters:
extra_ids – adds extra identifiers and common names to the output
notngc – if set to True return objects from the addendum catalog, otherwise return objects from the main NGC/IC catalog only
- pyongc.data.nebulae(extra_ids: bool = False, notngc: bool = False) DataFrame ¶
Returns data for all galaxies in the database.
- Parameters:
extra_ids – adds extra identifiers and common names to the output
notngc – if set to True return objects from the addendum catalog, otherwise return objects from the main NGC/IC catalog only