You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1691 adds gcloud.monitoring for accessing the Google Monitoring API. The initial focus is on querying of metric data.
The primary way in which users will want to get metric data is as a pandasDataFrame, and the Query class offers an as_dataframe() method for this purpose.
However, pandas is a large package with dependencies on yet other packages. I would not recommend gcloud-python taking a dependency on it.
We have taken the approach of importing pandas dynamically in as_dataframe(). The documentation explains that use of this method requires that you have pandas installed. This works perfectly.
Tests are still an issue, however. The unit tests for as_dataframe() naturally require pandas, which is not currently present in the test environment.
How should we handle this?
The text was updated successfully, but these errors were encountered:
Ideally you would add a tox environment (but maybe not one of the defaults) which added pandas to the dependencies, so that those tests could be exercised.
#1691 adds
gcloud.monitoring
for accessing the Google Monitoring API. The initial focus is on querying of metric data.The primary way in which users will want to get metric data is as a pandas
DataFrame
, and theQuery
class offers anas_dataframe()
method for this purpose.However,
pandas
is a large package with dependencies on yet other packages. I would not recommendgcloud-python
taking a dependency on it.We have taken the approach of importing
pandas
dynamically inas_dataframe()
. The documentation explains that use of this method requires that you havepandas
installed. This works perfectly.Tests are still an issue, however. The unit tests for
as_dataframe()
naturally requirepandas
, which is not currently present in the test environment.How should we handle this?
The text was updated successfully, but these errors were encountered: