我无法弄清楚我在哪里弄错了.我的命令vagrant up
回复了以下几行
$ vagrant up
Check your Homestead.yaml file, the path to your private key does not exist.
Check your Homestead.yaml file, the path to your private key does not exist.
Run Code Online (Sandbox Code Playgroud)
数据具有以下属性
这是我所做的
enter code here
#Buying price generalization
df["Buying_Price"]=df["Buying_Price"].replace({"vhigh":4})
df["Buying_Price"]=df["Buying_Price"].replace({"high":3})
df["Buying_Price"]=df["Buying_Price"].replace({"med":2})
df["Buying_Price"]=df["Buying_Price"].replace({"low":1})
#Maintanace generalization
df["Maintanance_price"]=df["Maintanance_price"].replace({"vhigh":4})
df["Maintanance_price"]=df["Maintanance_price"].replace({"high":3})
df["Maintanance_price"]=df["Maintanance_price"].replace({"med":2})
df["Maintanance_price"]=df["Maintanance_price"].replace({"low":1})
#lug_boot generalization
df["Lug_boot"]=df["Lug_boot"].replace({"small":1})
df["Lug_boot"]=df["Lug_boot"].replace({"med":2})
df["Lug_boot"]=df["Lug_boot"].replace({"big":3})
#Safety Generalization
df["Safety"]=df["Safety"].replace({"low":1})
df["Safety"]=df["Safety"].replace({"med":2})
df["Safety"]=df["Safety"].replace({"big":3})
print(df.head())
Run Code Online (Sandbox Code Playgroud)
打印时显示:
Cannot compare types 'ndarray(dtype=int64)' and 'str'
Run Code Online (Sandbox Code Playgroud) 这是我的代码
var array1 = [1,1, 30, 4, 21];
array1.sort();
console.log(array1);
// expected output: Array [1, 21, 30, 4]
Run Code Online (Sandbox Code Playgroud)
我想得到结果[1,4,21,30].sort函数应该给出预期的结果[1,1,4,21,30]它没有给出.此外,我应该采取什么方法来保持一个"1"?因为我不想重复
每次我想通过这个命令创建新项目
作曲家laravel/laravel_project project_name
作曲家开始从头开始安装.
我做错了什么吗?
另外,如果我从另一个项目复制框架,与通过上面的命令安装相同,对吧?[在对该目录做任何事之前复制所有内容]