我试图写一个xlsx文件,write.xlsx
我得到这个错误:
Error: zipping up workbook failed. Please make sure Rtools is installed or a zip application is available to R.
Try installr::install.rtools() on Windows.
package ‘Rtools’ is not available (for R version 3.1.2)
Run Code Online (Sandbox Code Playgroud)
我现在应该怎么做才能解决这个问题?
编辑: 我安装Rtools:
>installr::install.rtools()
No need to install Rtools - You've got the relevant version of Rtools installed
Run Code Online (Sandbox Code Playgroud)
但是之后我还是得到了那个错误 write.xlsx
我需要tcpdump
二进制文件android-x86
.这是我做的:
sudo apt-get install gcc-i686-linux-android
sudo apt-get install byacc
sudo apt-get install flex
wget http://www.tcpdump.org/release/tcpdump-4.9.0.tar.gz
wget http://www.tcpdump.org/release/libpcap-1.8.1.tar.gz
tar zxvf tcpdump-4.9.0.tar.gz
tar zxvf libpcap-1.8.1.tar.gz
cd libpcap-1.8.1
export CC=gcc
./configure --host=i686-pc-linux-gnu --with-pcap=linux
make
cd ..
cd tcpdump-4.9.0
export ac_cv_linux_vers=3
export CFLAGS=-static
export CPPFLAGS=-static
export LDFLAGS=-static
./configure --host=i686-pc-linux-gnu --disable-ipv6
Run Code Online (Sandbox Code Playgroud)
但是当我运行最后一个命令时,我收到以下错误:
configure: WARNING: unrecognized options: --disable-ipv6
checking build system type... x86_64-unknown-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... gcc
checking whether the C compiler works... yes
checking for C …
Run Code Online (Sandbox Code Playgroud) 我使用Genymotion模拟三星Galaxy S7(API 23),然后安装arm-translation并在重启设备后通过拖放安装我的应用程序.但我得到以下错误:
Unfortunately, <application name> has stopped.
Run Code Online (Sandbox Code Playgroud)
这是终端日志:
Failed to connect to VM (TcpStream) for main host connection, IP:Port=192.168.56.101:25000!!!
OpenGPL connected to 192.168.56.101:25000
port 22468 will be used for OpenGL data connections
Run Code Online (Sandbox Code Playgroud)
这是我运行设备和应用程序时的日志文件:
Mar 12 13:14:24 [Genymotion Player] [debug] Proxy configuration: no proxy used
Mar 12 13:14:24 [Genymotion Player] [debug] Host date and time: "12 Mar 2017 13:14:24 -0400"
Mar 12 13:14:24 [Genymotion Player] [debug] Proxy configuration: no proxy used
Mar 12 13:14:24 [Genymotion Player] [debug] GET QUrl( "https://cloud.genymotion.com/content/video" …
Run Code Online (Sandbox Code Playgroud) 我有一个大的 pandas 数据框,我想计算其中每个唯一值的出现次数,我尝试遵循,但需要花费大量时间和内存使用量。我怎样才能以Pythonic的方式做到这一点?
pack=[]
for index,row in packets.iterrows ():
pack.extend(pd.Series(row).dropna().values.tolist())
unique, count= np.unique(pack, return_counts=True)
counts= np.asarray((unique, count))
Run Code Online (Sandbox Code Playgroud) 我有两个数据框作为流:
leader:
0 11
1 8
2 5
3 9
4 8
5 6
[6065 rows x 2 columns]
DatasetLabel:
Unnamed: 0 0 1 .... 7 8 9 10 11 12
0 A J .... 1 2 5 NaN NaN NaN
1 B K .... 3 4 NaN NaN NaN NaN
[4095 rows x 14 columns]
Run Code Online (Sandbox Code Playgroud)
信息数据集的列名称0到6是关于数据的DatasetLabel,而7到12是引用领导者Dataframe的第一列的索引。
我想创建一个数据集,而不是DatasetLabel Dataset中的索引,而是从leader数据集中获取每个索引的值,即 leader.iloc[index,1]
我该如何使用python功能?
输出应如下所示:
DatasetLabel:
Unnamed: 0 0 1 .... 7 8 9 10 11 12
0 A J .... 8 5 …
Run Code Online (Sandbox Code Playgroud)