Uh oh!
There was an error while loading. Please reload this page.
Update monitoring gapic client, re-integrate helpers - #4785
Conversation
69759c8 to
84eb2eaCompareMost of the code was ported over from the master branch, and updated to use the autogenerated code. Also, add utf-8 encoding to proto/common_pb2.py.
84eb2ea to
dfc929fComparetheacodes
commented
Jan 26, 2018
@supriyagarg I don't see the actual addition of the monitoring gapic client here? |
lukesneeringer
left a comment
There was a problem hiding this comment.
This is mostly good; I have a couple items cited that I believe could/should be improved.
I also want to thank you for excellent commenting.
| :rtype: :class:`pandas.DataFrame` | ||
| :returns: A dataframe where each column represents one time series. | ||
| """ | ||
| import pandas # pylint: disable=import-error |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| """ | ||
| import pandas # pylint: disable=import-error | ||
| if labels is not None: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| headers.append(_extract_header(time_series)) | ||
| # Implement a smart default of using all available labels. | ||
| if label is None and labels is None: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| # Build a multi-level stack of column headers. Some labels may | ||
| # be undefined for some time series. | ||
| levels = [] | ||
| for key in labels or [label]: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| # by specifying "label". | ||
| dataframe.columns = pandas.MultiIndex.from_arrays( | ||
| levels, | ||
| names=labels or None) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| """ | ||
| # Using copy.deepcopy() would be appropriate, except that we want | ||
| # to copy self._client only as a reference. | ||
| new_query = copy.copy(self) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
lukesneeringer
commented
Jan 31, 2018
I added it in the base branch. |
e0a242a to
36fc192Compare36fc192 to
09a8f1dComparesupriyagarg
commented
Jan 31, 2018
@lukesneeringer: Thanks very much for your comments. I have addressed all of them. |
Also, populat the 'aggregation' field is now populated only if at least one of its components has been set.
9636908 to
18b9e37Comparechemelnucfin
commented
Feb 1, 2018
@lukesneeringer How does this tie in with autogen? Is just specifying automodule will autogenerate that class? And then query and _dataframe are just manual classes? |
bd09c12 to
bc3f82fCompare
Added back support for the Query class, and for converting timeseries data into a pandas DataFrame object.