-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bivariate #139
Fix bivariate #139
Conversation
Can you rebase off main so that ONLY the new commit(s) are in this PR? When you make the change make sure you branch off main rather than an old branch |
digautoprofiler/profile_lib.py
Outdated
@@ -306,19 +296,3 @@ def getTempAggrData(dfName: pd.DataFrame, tempColName: str, quantColName: str, a | |||
tempAggrData = groups.max() | |||
print(json.dumps({"data":tempAggrData.to_dict(), "timestep":timestep})) | |||
|
|||
|
|||
|
|||
def hampel(colData: pd.Series, k=7): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebase off main, this should not get deleted
@@ -282,7 +272,7 @@ def getTempAggrData(dfName: pd.DataFrame, tempColName: str, quantColName: str, a | |||
offsetAliases = ['Y','M','W','D','H','T','S'] | |||
i = 0 | |||
previousLen = -float("inf") | |||
currentLen = 0 | |||
currentLen = len(dfName[tempColName].dt.to_period(offsetAliases[i]).unique()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this doing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the initial value of currentLen
is wrong, which is the reason why the temporal chart sometimes can not determine the number of bins well
@@ -254,16 +253,7 @@ def getTemporalMeta(colData: pd.Series): | |||
result = "descending" | |||
else: | |||
result = "noSort" | |||
vc = colData.value_counts() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebase off main, this should not get deleted
dd7f0b9
to
1dc88dd
Compare
Functionality
fix the function of automatically determining the number of bins for temporal chart