uranusjr commented on code in PR #52224: URL: https://github.com/apache/airflow/pull/52224#discussion_r2166846691
########## providers/postgres/src/airflow/providers/postgres/hooks/postgres.py: ########## @@ -173,6 +178,24 @@ def get_conn(self) -> connection: self.conn = psycopg2.connect(**conn_args) return self.conn + def _get_pandas_df( + self, + sql, + parameters: list | tuple | Mapping[str, Any] | None = None, + **kwargs, + ) -> PandasDataFrame: + try: + from pandas.io import sql as psql + except ImportError: + raise AirflowOptionalProviderFeatureException( + "pandas library not installed, run: pip install " + "'apache-airflow-providers-common-sql[pandas]'." + ) Review Comment: Not sure if we want this part… -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org