增加“机器学习”和“数据分析”的块

This commit is contained in:
13880560530
2024-11-29 08:53:29 +08:00
parent 28552b0a22
commit ead77c4b89
8 changed files with 141 additions and 28 deletions

View File

@@ -1247,16 +1247,12 @@ export const pandas_drop_columns = {
this.appendValueInput('DATAFRAME')
.appendField('从数据集');
this.appendValueInput('COLUMNS')
.appendField('中删除列');
this.appendDummyInput()
.appendField('沿着axis')
.appendField(new Blockly.FieldDropdown([
['行', '0'],
['列', '1']
]), 'AXIS');
.appendField('中删除列')
.setCheck(String);
this.setInputsInline(true);
this.setOutput(true);
this.setTooltip('Drops columns from dataframe.');
}
this.setTooltip('从数据框中删除指定的列。用逗号分隔多个列名。');
},
};
export const numpy_ones = {