Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Fix bivariate #139

wants to merge 1 commit into from

Conversation

yuqizhang99
Copy link
Collaborator

Functionality

fix the function of automatically determining the number of bins for temporal chart

@willeppy
Copy link
Member

willeppy commented Jul 3, 2023

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

@willeppy willeppy self-requested a review July 3, 2023 16:28
@@ -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):
Copy link
Member

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())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this doing?

Copy link
Collaborator Author

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()
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants