Skip to content

Commit

Permalink
Merge pull request #82 from mlplatform-ops/feature-BRTCDEV-25386-M
Browse files Browse the repository at this point in the history
[25386-M][Studio] JAkorea 요청사항 적용
  • Loading branch information
ng1123 authored and sds-github committed Nov 11, 2022
2 parents b82538e + 7914c13 commit a3f31a3
Show file tree
Hide file tree
Showing 121 changed files with 15,999 additions and 13,660 deletions.
Git LFS file not shown
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"name": "brightics.function.statistics$profile_table",
"context": "python",
"label": {
"en": "Profile Table",
"en": "Profile Table",
"ko": "데이터 프로파일"
},
"description": "Profile Table function is for simple EDA, which briefly provide overview of data such as variables' statistics, and correlations among variables.\n\n\"This function profiles given table. This function uses pandas_profiling package.\"\n\nReference:\n+ <https://github.com/pandas-profiling/pandas-profiling>",
Expand Down Expand Up @@ -65,7 +65,7 @@
}
],
"summary": {
"en": "This function is for profiling data.",
"en": "This function is for profiling data.",
"ko": "데이터를 간단히 구조화하여 보여줍니다."
}
},
Expand Down Expand Up @@ -338,7 +338,7 @@
"func": "brightics.function.statistics$profile_table22844",
"name": "brightics.function.statistics$profile_table",
"param": {
"minimal": false
"minimal": true
},
"display": {
"label": "Profile Table",
Expand Down

This file was deleted.

17 changes: 10 additions & 7 deletions function/python/brightics/function/statistics/profile_table.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
Copyright 2019 Samsung SDS
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -16,7 +16,7 @@

import pandas
import pandas_profiling as pd_profiling

import matplotlib

from brightics.common.repr import BrtcReprBuilder
from brightics.common.groupby import _function_by_group
Expand All @@ -25,7 +25,6 @@
from brightics.common.validation import validate
from brightics.common.validation import greater_than_or_equal_to, greater_than


def profile_table(table, group_by=None, **params):
check_required_parameters(_profile_table, params, ['table'])

Expand All @@ -39,8 +38,12 @@ def profile_table(table, group_by=None, **params):

def _profile_table(table, minimal=False):
rb = BrtcReprBuilder()

profile = pd_profiling.ProfileReport(table, minimal=minimal)

profile = pd_profiling.ProfileReport(table,
minimal=minimal,
plot={"dpi": 200, "image_format": "png"}
)

profile.config.html.navbar_show = False
rb.addHTML(profile.html)
summary = dict()
Expand Down
2 changes: 1 addition & 1 deletion va-server/visual-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dateformat": "^5.0.3",
"debug": "2.6.9",
"dotenv": "2.0.0",
"echarts": "^5.3.3",
"echarts": "4.8.0",
"echarts-stat": "1.1.0",
"ejs": "^3.1.8",
"element-ui": "2.4.2",
Expand Down
Loading

0 comments on commit a3f31a3

Please sign in to comment.