«««< HEAD
layout: post title: “numpy” subtitle: “ "numpy"” date: 2022-08-16 18:00:00 mathjax: true author: “zwt” header-img: “img/post-bg-2015.jpg” catalog: false tags: - 数据分析 —
array
array合并:
1
2
3
4
A = np.array([1,1,1])
B = np.array([2,2,2])
np.vstack((A,B)) # 上下合并
np.hstack((A,B)) # 水平合并
空数组
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
=======
---
layout: post
title: "numpy"
subtitle: " \"numpy\""
date: 2022-08-16 18:00:00
mathjax: true
author: "zwt"
header-img: "img/post-bg-2015.jpg"
catalog: false
tags:
- 数据分析
---
* TOC
{:toc}
# array
array合并:
```python
A = np.array([1,1,1])
B = np.array([2,2,2])
np.vstack((A,B)) # 上下合并
np.hstack((A,B)) # 水平合并
空数组
1
2
>>>>>>> d5005ecd9eaf3ce32260dc1b7d831c7f2a1a85f3