小编Mit*_*esh的帖子

宅基地安装

我无法弄清楚我在哪里弄错了.我的命令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)

在此输入图像描述

laravel homestead

71
推荐指数
3
解决办法
5万
查看次数

无法比较类型“ndarray(dtype=int64)”和“str”

我要替换的数据示例 在此处输入图片说明

数据具有以下属性

  1. 购买 v 高、高、中、低
  2. 维持 v-高、高、中、低
  3. 门 2,3,4,5-more
  4. 2,4 人以上
  5. lug_boot 小、中、大
  6. 安全低、中、高

这是我所做的

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)

python numpy

11
推荐指数
1
解决办法
3万
查看次数

webview SSL 错误处理程序

我收到了来自 Google Play 商店的关于我的应用程序的通知

在此输入图像描述

这是我之前的代码..收到错误通知后,我从 google Android 开发人员页面查看并读取了 ssl 错误处理程序。这是我之前的代码在此输入图像描述

这是我的新的 在此输入图像描述

但同样的问题依然存在!!上传新版本后收到相同的通知

android android-studio android-security

1
推荐指数
1
解决办法
3783
查看次数

javascript排序没有多个条目

这是我的代码

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"?因为我不想重复

在此输入图像描述

javascript arrays sorting

1
推荐指数
1
解决办法
90
查看次数

当我创建新项目时,Composer每次都安装laravel

每次我想通过这个命令创建新项目

作曲家laravel/laravel_project project_name

作曲家开始从头开始安装.

我做错了什么吗?

另外,如果我从另一个项目复制框架,与通过上面的命令安装相同,对吧?[在对该目录做任何事之前复制所有内容]

php frameworks laravel laravel-5

0
推荐指数
1
解决办法
1177
查看次数