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

Merge in Master branch changes, add len() functionality to the LuxSQLTable #327

Merged
merged 23 commits into from
Mar 27, 2021

Conversation

thyneb19
Copy link
Contributor

@thyneb19 thyneb19 commented Mar 26, 2021

Overview

Merging in recent master branch changes. handling.

thyneb19 and others added 20 commits March 19, 2021 16:55
"name" parameter was being added again unnecessarily in lux series and tests for series
Issue when running test_vis in Github Actions. Adjusted test_scatter_chart and test_colored_scatter_chart
* coalesce data_types into data_type_lookup

* merge fixed

* merge conflicts

* first commit

* requirements.txt updated for pandas 1.2.2

* revert cardinality requiremment

* black reformat

* all tests passing with cardinality optimization

* remove abs value

* tests added

* black reformat

* minor fixes

* black

Co-authored-by: Doris Lee <dorisjunglinlee@gmail.com>
Lux config now shoots an error if a user specifies a non-existent executor type
Removed unnecessary hyperparameter transferring in the Vis object.

Update LuxSQLTable to display have more verbose display notification.
* fix repr to display string of df

* replace repr_html to move widget into Out

* replace repr_html in other files

* fix issue for LuxSeries
Update test_interestingness to test for deviation_from_overall changes when using the SQLExecutor
The _length parameter keeps track of the number of datapoints within the table/view that a LuxSQLTable is connected to.

Added a len() function to make this parameter accessible. Unable to override the __len__() function as doing so breaks an assertion within the parent DataFrame class

Updated interestingness.py to use the new len() function
Adding back in the _length parameter to the LuxDataFrame
Rather than referencing the _length parameter throughout the code, update and use the LuxSQLTable len() function.

Added _setup_done parameter to the LuxSQLTable. This will check if the initial setup of the table, retrieving and populating attributes, is completed. This will inform which len() function to use, as the parent len() is required while populating the columns of the LuxSQLTable.
Rename _repr_html_() to _ipython_display_()
@thyneb19 thyneb19 requested a review from dorisjlee March 26, 2021 05:00
@thyneb19 thyneb19 removed the request for review from dorisjlee March 27, 2021 18:55
@thyneb19 thyneb19 merged commit 75c5cae into lux-org:sql-engine Mar 27, 2021
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.

None yet

5 participants