在我的 Windows 目录中
C:\Users\jholmes\pichak\analytics
Run Code Online (Sandbox Code Playgroud)
我有 run1.ps1 代码。我运行 wsl.exe,现在我的密码是
/mnt/c/WINDOWS/system32
Run Code Online (Sandbox Code Playgroud)
如何指向第一个路径并执行脚本?
我试过这个
docker run --rm -it -p 2181:2181 -p 8081:8081 -p 8082:8082 -p 8083:8083 -p 9092:9092 -e ADV_HOST=127.0.0.1 landoop/fast-data-dev
Run Code Online (Sandbox Code Playgroud)
我收到了错误
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.35/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
Run Code Online (Sandbox Code Playgroud)
我检查过守护进程是否正在运行
? docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since ??? 2018-01-23 10:52:50 CET; 2h 14min ago
Docs: https://docs.docker.com
Main PID: 11082 (dockerd)
Run Code Online (Sandbox Code Playgroud)
这是我的/ etc/default/docker
# Customize location of …Run Code Online (Sandbox Code Playgroud) 我想提取站点 2 的用电量
>>> df4 = pd.read_excel(xls, 'Elec Monthly Cons')
>>> df4
Site Unnamed: 1 2014-01-01 00:00:00 2014-02-01 00:00:00 2014-03-01 00:00:00 ... 2017-08-01 00:00:00 2017-09-01 00:00:00 2017-10-01 00:00:00 2017-11-01 00:00:00 2017-12-01 00:00:00
0 Site Profile JAN 2014 FEB 2014 MAR 2014 ... AUG 2017 SEP 2017 OCT 2017 NOV 2017 DEC 2017
1 Site 1 NHH 10344 NaN NaN ... NaN NaN NaN NaN NaN
2 Site 2 HH 258351 229513 239379 ... NaN NaN NaN NaN NaN
Run Code Online (Sandbox Code Playgroud)
类型
type(df4) …Run Code Online (Sandbox Code Playgroud) 我为我的一个项目调整了一个机器学习代码.在我的笔记本电脑上工作正常的代码现在在我的桌面上出现问题.我正在检查所有数据框列的缺失值.
File "g100.py", line 11, in <module>
print(dfs.columns[dfs.isna().any()].tolist())
AttributeError: 'DataFrame' object has no attribute 'isna'
Run Code Online (Sandbox Code Playgroud)
我安装的熊猫版本和依赖项
d.show_versions(as_json=False)
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.3.final.0
python-bits: 64
OS: Linux
OS-release: 4.13.0-37-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.20.3
pytest: 3.4.2
pip: 9.0.3
setuptools: 38.5.1
Cython: None
numpy: 1.11.3
scipy: 0.19.0
xarray: None
IPython: 6.2.1
sphinx: None
patsy: 0.5.0
dateutil: 2.6.0
pytz: 2017.3
blosc: None
bottleneck: None
tables: 3.4.2
numexpr: 2.6.4
feather: None
matplotlib: 2.1.2 …Run Code Online (Sandbox Code Playgroud) 我是 gevent 的新手。我已经阅读了gevent 的介绍
他们提供了简单的例子,但我很难理解什么是greenlet。来自学习并发。
Greenlets are a very lightweight coroutine written in C that
are cooperatively scheduled. They provide us with a very lightweight thread-
like object that allows us to achieve concurrent execution within our Python
programs without incurring the cost of spinning up multiple threads.
Run Code Online (Sandbox Code Playgroud)
greenlets不是线程?同步点是如何定义的?有人可以举例说明吗?
我有一个小项目(稍后我将添加一些文件)。在VS中,从工具->NuGet包管理器

我的仓库中的目录
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 8/22/2021 3:28 PM bin
d----- 8/22/2021 6:11 PM obj
-a---- 8/22/2021 6:12 PM 9563 Appointments.csproj
-a---- 8/20/2021 1:57 PM 344 Appointments.csproj.user
------ 7/27/2021 7:13 AM 2100 Appointments.sln
------ 7/27/2021 7:13 AM 1749 Package.appxmanifest
------ 7/27/2021 7:13 AM 1985 SampleConfiguration.cs
------ 7/27/2021 7:13 AM 12184 Scenario1_Define.xaml.cs
------ 7/27/2021 7:13 AM 2334 Scenario2_Add.xaml.cs
------ 7/27/2021 7:13 AM 3991 Scenario3_Replace.xaml.cs
------ 7/27/2021 7:13 AM 3387 Scenario4_Remove.xaml.cs
------ 7/27/2021 7:13 AM 1475 Scenario5_Show.xaml.cs …Run Code Online (Sandbox Code Playgroud) 我在同一个网络上有这两个容器
docker inspect my_app_net
[
{
"Name": "my_app_net",
"Id": "e136b758e8009e0361168aa0ead14ec85973c8d4f93e65122c22a2ff18f5e61f",
"Created": "2018-03-22T21:11:51.781623693+01:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": {},
"Config": [
{
"Subnet": "172.19.0.0/16",
"Gateway": "172.19.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"a966584cd491caff18b25fa347b738a0853e5195ac517b5fb26bb019a271fc10": {
"Name": "new_pizd",
"EndpointID": "fdbacbbd564aeacccc57367dd082232e0498976ca485597b6ba8f6c82a0d4240",
"MacAddress": "02:42:ac:13:00:03",
"IPv4Address": "172.19.0.3/16",
"IPv6Address": ""
},
"b36f350efca1f2e79bef8027a32f992021091fdd701e4d55d98af78984072150": {
"Name": "new_nginx2",
"EndpointID": "38731d2618aba0a7c63debd3b30a4c9b530d83a4fddbda97cdd2498298007120",
"MacAddress": "02:42:ac:13:00:02",
"IPv4Address": "172.19.0.2/16",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {} …Run Code Online (Sandbox Code Playgroud) 这就是 ps -a 给我们的
\n\n NAMES\n4514ea1b7b22 debian "--name gallant_spen\xe2\x80\xa6" 9 minutes ago Created peaceful_engelbart\ndf9bd2731a2b debian "--name gallant_spen\xe2\x80\xa6" 9 minutes ago Created happy_hodgkin\ndd5b1f1b39ec redis "docker-entrypoint.s\xe2\x80\xa6" 32 minutes ago Up 31 minutes 6379/tcp myred\nffd6ef9d8bd5 redis "docker-entrypoint.s\xe2\x80\xa6" 32 minutes ago Exited (127) 32 minutes ago festive_jennings\n9d01d321adad redis "docker-entrypoint.s\xe2\x80\xa6" 33 minutes ago Exited (0) 32 minutes ago agitated_shannon\neb7c13e7cdee debian "ls /data" 2 days ago Exited (0) 9 seconds ago gallant_spence\n8991a31b1e38 debian "ls /data" 2 days ago Exited (0) 2 days ago determined_minsky\nRun Code Online (Sandbox Code Playgroud)\n\n我已经尝试过这种方式 …
n <- akima :: interp(
x, y, z, xo = seq(min(x), max(x), length = 100),
yo = seq(min(y), max(y), length = 100),
linear = TRUE, extrap = FALSE,
duplicate = "error", dupfun = NULL,
ncp = NULL)
Run Code Online (Sandbox Code Playgroud)
但它给出了:
Error in interp.old(x, y, z, xo = xo, yo = yo, ncp = 0, extrap = extrap, :
missing values and Infs not allowed
Run Code Online (Sandbox Code Playgroud)
我们来看看:
is.na(x), is.na(y), is.na(z)都是假的
str(x)
num [1:1398] 1.62 1.62 1.62 1.62 1.63 1.63 1.63 1.63 1.63 1.63 …Run Code Online (Sandbox Code Playgroud) 我想开始使用 git
这是我的 github 仓库
我的用户名是 MilenkoM 吗?
git config --global user.name
Run Code Online (Sandbox Code Playgroud)
什么也没显示,因为我没有在 UBuntu 上使用 git,我刚刚从其他人那里分叉了 repos
我可以从 Ubuntu 的命令行看到这个吗?