Skip to content

Devops for v2.4.5 #229

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

Merged
merged 6 commits into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions visualpython/css/component/popupComponent.css
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,21 @@
float: left;
margin-top: 9px;
margin-left: 10px;
line-height: 20px;
}
.vp-popup-button[data-type="data"] {
float: left;
margin-top: 9px;
margin-left: 10px;
line-height: 20px;
}
.vp-popup-button[data-type="help"] {
float: left;
margin-top: 9px;
margin-left: 10px;
background-color: #F9B52A;
color: var(--vp-background-color);
line-height: 20px;
}
.vp-popup-button[data-type="cancel"] {
float: right;
Expand Down
3 changes: 3 additions & 0 deletions visualpython/css/m_apps/frame.css
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@
.vp-inner-popup-apply-column {
width: 153px;
}
.vp-inner-popup-apply-target-name {
width: 115px;
}
.vp-inner-popup-sortby {
border: 0.25px solid var(--vp-border-gray-color);
width: 160px;
Expand Down
5 changes: 5 additions & 0 deletions visualpython/css/root.css
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,11 @@ hr.vp-extra-menu-line {
.vp-inner-popup-body .w70 {
width: 70px !important;
}
#vp_wrapper .w60,
.vp-popup-frame .w60,
.vp-inner-popup-body .w60 {
width: 60px !important;
}
#vp_wrapper .w50,
.vp-popup-frame .w50,
.vp-inner-popup-body .w50 {
Expand Down
34 changes: 34 additions & 0 deletions visualpython/data/m_library/pandasLibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ define([
"name": "Series",
"library": "pandas",
"description": "1 dimension array with same data types",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.Series.html",
"code": "${o0} = pd.Series(${i0}${index}${name})",
"options": [
{
Expand Down Expand Up @@ -64,6 +65,7 @@ define([
"name": "DataFrame",
"library": "pandas",
"description": "2 dimension data table type pandas variable",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html",
"code": "${o0} = pd.DataFrame(${i0}${index}${columns})",
"options": [
{
Expand Down Expand Up @@ -98,6 +100,7 @@ define([
"name": "Index",
"library": "pandas",
"description": "Create index object",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.Index.html",
"code": "${o0} = pd.Index(${data}${dtype}${copy}${name}${tupleize_cols})",
"options": [
{
Expand Down Expand Up @@ -162,6 +165,7 @@ define([
"name": "Read CSV",
"library": "pandas",
"description": "",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html",
"code": "${o0} = pd.read_csv(${i0}${encoding}${header}${sep}${names}${usecols}${index_col}${na_values}${skiprows}${nrows}${chunksize}${etc})",
"options": [
{
Expand Down Expand Up @@ -250,6 +254,7 @@ define([
"name": "To CSV",
"library": "pandas",
"description": "dataframe to csv",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_csv.html",
"code": "${i0}.to_csv(${i1}${encoding}${header}${index}${sep}${na_rep}${columns}${etc})",
"options": [
{
Expand Down Expand Up @@ -320,6 +325,7 @@ define([
"name": "Merge",
"library": "pandas",
"description": "Merge 2 objects",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.merge.html",
"code": "${o0} = pd.merge(${i0}, ${i1}${left_on}${right_on}${how}${sort})",
"options": [
{
Expand Down Expand Up @@ -390,6 +396,7 @@ define([
"name": "Join",
"library": "pandas",
"description": "Merge multiple objects",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.join.html",
"code": "${o0} = ${i0}.join(${i1}${on}${how}${sort}${lsuffix}${rsuffix})",
"options": [
{
Expand Down Expand Up @@ -469,6 +476,7 @@ define([
"name": "Concat",
"library": "pandas",
"description": "Merge multiple objects",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.concat.html",
"code": "${o0} = pd.concat([${i0}]${index}${axis}${sort}${join})",
"options": [
{
Expand Down Expand Up @@ -540,6 +548,7 @@ define([
"name": "Sort By Index",
"library": "pandas",
"description": "Sort by index",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.sort_index.html",
"code": "${o0} = ${i0}.sort_index(${axis}${ascending}${inplace}${kind})",
"options": [
{
Expand Down Expand Up @@ -624,6 +633,7 @@ define([
"name": "Group By",
"library": "pandas",
"description": "Group DataFrame/Series",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.groupby.html",
"code": "${o0} = ${i0}.groupby(${level}${axis}${sort}${as_index})",
"options": [
{
Expand Down Expand Up @@ -692,6 +702,7 @@ define([
"name": "Period",
"library": "pandas",
"description": "Create Period object",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.Period.html",
"code": "${o0} = pd.Period(${i0}${freq}${year}${month}${day})",
"options": [
{
Expand Down Expand Up @@ -759,6 +770,7 @@ define([
"name": "Drop NA",
"library": "pandas",
"description": "",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.dropna.html",
"code": "${o0} = ${i0}.dropna(${axis}${how}${thresh})",
"options": [
{
Expand Down Expand Up @@ -823,6 +835,7 @@ define([
"name": "Fill NA",
"library": "pandas",
"description": "replace null using value",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.fillna.html",
"code": "${o0} = ${i0}.fillna(${value}${axis}${method}${inplace}${limit})",
"options": [
{
Expand Down Expand Up @@ -902,6 +915,7 @@ define([
"name": "Get Duplicates",
"library": "pandas",
"description": "Get duplicates",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.duplicated.html",
"code": "${o0} = ${i0}.duplicated(${keep})",
"options": [
{
Expand Down Expand Up @@ -986,6 +1000,7 @@ define([
"name": "Scala Replace",
"library": "pandas",
"description": "Replace scala value",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.replace.html",
"code": "${o0} = ${i0}.replace(${to_replace}${value}${method})",
"options": [
{
Expand Down Expand Up @@ -1038,6 +1053,7 @@ define([
"name": "List-like Replace",
"library": "pandas",
"description": "Replace values using list",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.replace.html",
"code": "${o0} = ${i0}.replace(${to_replace}${value}${method})",
"options": [
{
Expand Down Expand Up @@ -1090,6 +1106,7 @@ define([
"name": "Dict-like Replace",
"library": "pandas",
"description": "Replace values using dictionary",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.replace.html",
"code": "${o0} = ${i0}.replace(${to_replace}${value}${method})",
"options": [
{
Expand Down Expand Up @@ -1142,6 +1159,7 @@ define([
"name": "Regular Expression Replace",
"library": "pandas",
"description": "",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.replace.html",
"code": "${o0} = ${i0}.replace(${to_replace}${value}${method}${regex})",
"options": [
{
Expand Down Expand Up @@ -1203,6 +1221,7 @@ define([
"name": "Sum",
"library": "pandas",
"description": "",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.sum.html",
"code": "${o0} = ${i0}.sum(${axis}${skipna}${level})",
"options": [
{
Expand Down Expand Up @@ -1262,6 +1281,7 @@ define([
"name": "Mean",
"library": "pandas",
"description": "",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.mean.html",
"code": "${o0} = ${i0}.mean(${axis}${skipna}${level})",
"options": [
{
Expand Down Expand Up @@ -1321,6 +1341,7 @@ define([
"name": "Count",
"library": "pandas",
"description": "Count except NA values",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.count.html",
"code": "${o0} = ${i0}.count(${axis}${skipna}${level})",
"options": [
{
Expand Down Expand Up @@ -1380,6 +1401,7 @@ define([
"name": "Max",
"library": "pandas",
"description": "",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.max.html",
"code": "${o0} = ${i0}.max(${axis}${skipna}${level})",
"options": [
{
Expand Down Expand Up @@ -1439,6 +1461,7 @@ define([
"name": "Min",
"library": "pandas",
"description": "",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.min.html",
"code": "${o0} = ${i0}.min(${axis}${skipna}${level})",
"options": [
{
Expand Down Expand Up @@ -1498,6 +1521,7 @@ define([
"name": "Median",
"library": "pandas",
"description": "Median(50%)",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.median.html",
"code": "${o0} = ${i0}.median(${axis}${skipna}${level}${numeric_only})",
"options": [
{
Expand Down Expand Up @@ -1574,6 +1598,7 @@ define([
"name": "Std",
"library": "pandas",
"description": "",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.std.html",
"code": "${o0} = ${i0}.std(${axis}${skipna}${level}${numeric_only})",
"options": [
{
Expand Down Expand Up @@ -1650,6 +1675,7 @@ define([
"name": "Quantile",
"library": "pandas",
"description": "Calculate quantile between 0 and 1",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.quantile.html",
"code": "${o0} = ${i0}.quantile(${q}${axis}${numeric_only}${interpolation})",
"options": [
{
Expand Down Expand Up @@ -1735,6 +1761,7 @@ define([
"name": "Drop Row/Column",
"library": "pandas",
"description": "Drop row and column",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.drop.html",
"code": "${o0} = ${i0}.drop(${i1}${axis})",
"options": [
{
Expand Down Expand Up @@ -1791,6 +1818,7 @@ define([
"name": "date_range",
"library": "pandas",
"description": "Create DatetimeIndex type timestamp",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.date_range.html",
"code": "${o0} = pd.date_range(${start}${end}${periods}${freq})",
"options": [
{
Expand Down Expand Up @@ -1862,6 +1890,7 @@ define([
"name": "Sort By Values",
"library": "pandas",
"description": "",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.sort_values.html",
"code": "${o0} = ${i0}.sort_values(${by}${axis}${ascending}${inplace}${kind})",
"options": [
{
Expand Down Expand Up @@ -1946,6 +1975,7 @@ define([
"name": "Is Null",
"library": "pandas",
"description": "Find null",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.isnull.html",
"code": "${o0} = pd.isnull(${i0})",
"options": [
{
Expand Down Expand Up @@ -1974,6 +2004,7 @@ define([
"name": "Not Null",
"library": "pandas",
"description": "Find not null",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.notnull.html",
"code": "${o0} = pd.notnull(${i0})",
"options": [
{
Expand Down Expand Up @@ -2002,6 +2033,7 @@ define([
"name": "Transpose",
"library": "pandas",
"description": "Transpose row and column",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.T.html",
"code": "${o0} = ${i0}.T",
"options": [
{
Expand Down Expand Up @@ -2031,6 +2063,7 @@ define([
"name": "Get columns",
"library": "pandas",
"description": "",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.columns.html",
"code": "${o0} = ${i0}.columns",
"options": [
{
Expand Down Expand Up @@ -2375,6 +2408,7 @@ define([
"name": "Unique",
"library": "pandas",
"description": "",
"docs": "https://pandas.pydata.org/docs/reference/api/pandas.Series.unique.html",
"code": "${o0} = ${i0}.unique()",
"options": [
{
Expand Down
41 changes: 41 additions & 0 deletions visualpython/html/component/helpViewer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!--
Project Name : Visual Python
Description : GUI-based Python code generator
File Name : helpViewer.html
Author : Black Logic
Note : Help viewer
License : GNU GPLv3 with Visual Python special exception
Date : 2023. 07. 13
Change Date :
-->
<!-- use body tag to strip comments out on requirejs/text plugin -->
<body>
<div class="vp-popup-frame">
<div class="vp-popup-header">
<!-- CHROME: title is a handler for draggable, but for some reason label tag's width is not controllable. changed tag: label -> div -->
<div class="vp-popup-title">
<!-- Title -->
Help viewer
</div>
<div class="vp-popup-maximize" title="Maximize this popup"></div>
<div class="vp-popup-return" title="Return size of this popup"></div>
<div class="vp-popup-close" title="Close popup"></div>
</div>
<div class="vp-popup-body vp-scrollbar">
<!-- Body -->
<div class="vp-popup-content">
<!-- <textarea id="helpContent" class="wp100"></textarea> -->
<pre id="helpContent">

</pre>
</div>
</div>
<div class="vp-popup-footer">
<!-- Footer -->
<!-- Button box -->
<div class="vp-popup-button-box">
<button type="button" class="vp-button vp-popup-button" data-type="cancel">Cancel</button>
</div>
</div>
</div>
</body>
1 change: 1 addition & 0 deletions visualpython/html/component/popupComponent.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
<div class="vp-popup-button-box">
<button type="button" class="vp-button vp-popup-button" data-type="code">Code view</button>
<button type="button" class="vp-button vp-popup-button" data-type="data">Data view</button>
<button type="button" class="vp-button vp-popup-button" data-type="help">Help</button>

<div class="vp-popup-runadd-box">
<button type="button" class="vp-button activated vp-popup-button" data-type="run" title="Save to block & Run cell">Run</button>
Expand Down
Loading