A -0.951185
B 1.420427
C -0.194470
D -0.305272
Name: 2001-08-10 00:00:00, dtype: float64
A B
2001-08-10 -0.951185 1.420427
2001-08-11 -0.182651 0.939551
A C
2001-08-08 0.339365 0.243576
2001-08-09 0.704013 -0.186915
2001-08-11 -0.182651 -0.432457
A B C D
2001-08-08 0.339365 0.500148 0.243576 -0.160504
2001-08-09 0.704013 1.720233 -0.186915 -1.322280
B C
2001-08-07 0.049568 -1.299745
2001-08-08 0.500148 0.243576
2001-08-09 1.720233 -0.186915
2001-08-10 1.420427 -0.194470
2001-08-11 0.939551 -0.432457
2001-08-12 1.950314 -0.622115
0.5001484694436036
0.5001484694436036
A B C D
2001-08-08 0.339365 0.500148 0.243576 -0.160504
A B C D
2001-08-07 NaN 0.049568 NaN 0.636079
2001-08-08 0.339365 0.500148 0.243576 NaN
2001-08-09 0.704013 1.720233 NaN NaN
2001-08-10 NaN 1.420427 NaN NaN
2001-08-11 NaN 0.939551 NaN NaN
2001-08-12 1.178420 1.950314 NaN 1.248751
A B C D E
2001-08-07 -0.297676 0.049568 -1.299745 0.636079 one
2001-08-08 0.339365 0.500148 0.243576 -0.160504 one
2001-08-09 0.704013 1.720233 -0.186915 -1.322280 two
2001-08-10 -0.951185 1.420427 -0.194470 -0.305272 three
2001-08-11 -0.182651 0.939551 -0.432457 -1.060890 four
2001-08-12 1.178420 1.950314 -0.622115 1.248751 three
0 1 2 3 4
0 0.841797 0.269025 2.514216 -1.896455 0.479344
1 1.352019 -0.467855 -0.754422 0.242742 1.465160
0 1 2 3
0 1.403584 0.082813 0.469722 -0.534022
1 0.320259 0.331209 0.291575 0.477501
2 1.226319 -1.297662 -0.540806 -0.050445
df1+df2
0 1 2 3 4
0 2.245381 0.351839 2.983938 -2.430477 NaN
1 1.672278 -0.136645 -0.462847 0.720243 NaN
2 NaN NaN NaN NaN NaN
df1-df2
0 1 2 3 4
0 -0.561788 0.186212 2.044494 -1.362433 NaN
1 1.031759 -0.799064 -1.045997 -0.234759 NaN
2 NaN NaN NaN NaN NaN
df1*df2
0 1 2 3 4
0 1.181533 0.022279 1.180982 1.012749 NaN
1 0.432996 -0.154958 -0.219971 0.115910 NaN
2 NaN NaN NaN NaN NaN
df1/df2
0 1 2 3 4
0 0.599748 3.248576 5.352562 3.551266 NaN
1 4.221638 -1.412564 -2.587399 0.508359 NaN
2 NaN NaN NaN NaN NaN
left = pd.DataFrame({'key':['foo','foo','bar'],'lval':[1,2,2]})print(left)
right = pd.DataFrame({'key':['foo','foo','bar'],'rval':[3,4,5]})print(right)
pd.merge(left, right, on='key')
df = pd.DataFrame(np.random.randn(8,4), columns=['A','B','C','D'])print(df)
s = df.iloc[3]print(s)
df.append(s, ignore_index=True)# 已失效
A B C D
0 0.277439 -0.363739 1.026139 1.614032
1 -1.595705 1.259329 -1.062648 0.186739
2 -0.639943 0.402358 0.110181 0.180963
3 -0.621929 0.401519 -0.975065 -1.001928
4 -3.077506 1.075743 -0.544791 2.573899
5 2.038906 0.301643 -0.920341 1.700568
6 1.679596 0.642480 -0.688277 0.447207
7 -1.582690 -0.033994 -1.513041 1.009212
A -0.621929
B 0.401519
C -0.975065
D -1.001928
Name: 3, dtype: float64
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[112], line 5
3 s=df.iloc[3]
4 print(s)
----> 5 df.append(s,ignore_index=True)#已失效
File D:\Python\Miniconda3\miniconda3\envs\p2s\lib\site-packages\pandas\core\generic.py:6204, in NDFrame.__getattr__(self, name)
6197 if (
6198 name not in self._internal_names_set
6199 and name not in self._metadata
6200 and name not in self._accessors
6201 and self._info_axis._can_hold_identifiers_and_holds_name(name)
6202 ):
6203 return self[name]
-> 6204 return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'append'
A B C D
0 foo one 0.189163 -0.806318
1 bar two 2.407904 -0.095191
2 foo three 0.074226 0.293678
3 bar four 0.546407 0.809018
4 foo one -0.450351 -0.499252
5 bar two -1.720710 0.931944
6 foo three 0.695358 0.185726
7 bar four 2.094319 1.072681
A B C D E
0 one A foo -1.546985 0.590130
1 two B foo 1.732416 -2.586836
2 three C foo -1.105102 -0.858783
3 four A bar -0.732389 -0.475518
4 one B bar 0.533465 0.736240
5 two C bar 0.197097 -1.329285
6 three A foo 0.495105 0.426743
7 four B foo -0.611343 -0.204255
8 one C foo -0.678577 -2.013504
9 two A bar -0.538301 -1.216611
10 three B bar -1.503484 -0.199938
11 four C bar 1.323900 0.883130
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a null object reference
出现以上异常.然后就在baidu上
cmd命令打jar是如下实现:
在运行里输入cmd,利用cmd命令进入到本地的工作盘符。(如我的是D盘下的文件有此路径 D:\workspace\prpall\WEB-INF\classes)
现在是想把D:\workspace\prpall\WEB-INF\classes路径下所有的文件打包成prpall.jar。然后继续如下操作:
cd D: 回车
cd workspace/prpal
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml&q
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.
public class Solution {
public int maximalRectangle(char[][] matrix)
随着RESTful Web Service的流行,测试对外的Service是否满足期望也变的必要的。从Spring 3.2开始Spring了Spring Web测试框架,如果版本低于3.2,请使用spring-test-mvc项目(合并到spring3.2中了)。
Spring MVC测试框架提供了对服务器端和客户端(基于RestTemplate的客户端)提供了支持。
&nbs
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
/*you'll also need to set UIViewControllerBasedStatusBarAppearance to NO in the plist file if you use this method
英文资料:
Thread Dump and Concurrency Locks
Thread dumps are very useful for diagnosing synchronization related problems such as deadlocks on object monitors. Ctrl-\ on Solaris/Linux or Ctrl-B