我试图在python 3上安装PodSixNet,所以我打开命令提示符并输入
<div class="container-fluid">
<div class="row">
<img class="img-fluid d-block mx-auto" src="http://placehold.it/200x200" alt="My Alt Text">
</div>
</div>
但我收到此错误
import pandas as pd
# get fake data
df = pd.DataFrame(pd.np.random.rand(10))
df['GROUP'] = df[0].astype(str).str[2]
# mark one element of each group as selected
df['selected'] = df.index.isin( # Is current index in a selected list?
df.groupby('GROUP') # Get a GroupBy object.
.apply(pd.Series.sample) # Select one row from each group.
.index.levels[1] # Access index - in this case (group, old_id) pair; select the old_id out of the two.
).astype(pd.np.int) # Convert to ints.
我该如何解决这个问题?
答案 0 :(得分:1)
您可以从here下载PodSixNet子目录并将其复制到您自己的项目中,然后导入PodSixNet。
答案 1 :(得分:0)
execfile
是Python 2中的builtin function removed in Python 3。显然,该软件包仅适用于Python 2。