df = pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]})
df.shape # 形状,格式是(行数,列数)
df.shape[0] # 行数
df.shape[1] # 列数参考:https://www.geeksforgeeks.org/python-pandas-df-size-df-shape-and-df-ndim/
df = pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]})
df.shape # 形状,格式是(行数,列数)
df.shape[0] # 行数
df.shape[1] # 列数参考:https://www.geeksforgeeks.org/python-pandas-df-size-df-shape-and-df-ndim/
	Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
	
	©2021-
	
	    searchstar
	
	
	
		|
		
			pv
			
		
		|
		 
			uv
			
		
	
	
	Theme Tree
	by Wu Jun
	Powered by Hexo