小编Jai*_*tia的帖子

Git 存储库上没有上传 .git 文件

我已经完成了 git init 并为我的项目创建了一个 Git 存储库。当我“cd .git”时,我进入该文件夹。但我的问题是,在 Git 存储库中,.git 文件没有上传。我尝试更改目录并执行新的 git init,但问题仍然存在。因此,当有人克隆我的存储库时,没有 .git 文件夹,因此它说不是 Git 存储库。

git github

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

如何在Python中对列表中的单词进行编码

我有一个字典,其中我将每个单词作为键和相应的整数值,例如:

 {'me': 41, 'are': 21, 'the': 0}
Run Code Online (Sandbox Code Playgroud)

我有一个数据框,其中包含一列已经标记化的单词列表,例如:

['I', 'liked', 'the', 'color', 'of', 'this', 'top']
['Just', 'grabbed', 'this', 'today', 'great', 'find']
Run Code Online (Sandbox Code Playgroud)

如何将这些单词中的每个单词编码为字典中的相应值.例如:

[56, 78, 5, 1197, 556, 991, 40] 
Run Code Online (Sandbox Code Playgroud)

python encoding text-processing dictionary dataframe

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

标签 统计

dataframe ×1

dictionary ×1

encoding ×1

git ×1

github ×1

python ×1

text-processing ×1