- 博客(10)
- 资源 (10)
- 收藏
- 关注
原创 pandas_2
import pandasfood_info = pandas.read_csv("food_info.csv")col_names = food_info.columns.tolist()print(col_names)print(food_info.head(3))['NDB_No', 'Shrt_Desc', 'Water_(g)', 'Energ_Kcal', 'Protein...
2019-01-30 15:53:12 113
原创 pandas_1
import pandasfood_info = pandas.read_csv("food_info.csv")print(type(food_info))print(20*"*#")print(food_info.dtypes) <class 'pandas.core.frame.DataFrame'>*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*...
2019-01-30 15:36:02 105
原创 numpy_7
import numpy as np#交换矩阵的其中两行a = np.arange(25).reshape(5,5)print (a)a[[0,1]] = a[[1,0]]print (a)[[ 0 1 2 3 4] [ 5 6 7 8 9] [10 11 12 13 14] [15 16 17 18 19] [20 21 22 23 24]][[ 5 6...
2019-01-30 15:00:11 251
原创 numpy_6
import numpy as np#1:8*8棋盘矩阵,其中1、3、5、7行&&0、2、4、6列的元素置为1 1 ,3,5,7列&&0,2,4,6行也是1z = np.zeros((8,8),dtype=int)z[1::2,::2] = 1z[::2,1::2] = 1print(z)[[0 1 0 1 0 1 0 1] [1 0 1 0 ...
2019-01-30 14:44:31 751
原创 numpy_5
import numpy as npdata = np.sin(np.arange(20)).reshape(5,4)print (data)print(10*"*")ind = data.argmax(axis=0)print (ind)print(10*"*")print(range(0,4))print(10*"*")data_max = data[ind, range(d...
2019-01-30 14:37:33 121
原创 numpy_4
import numpy as npB = np.arange(3)print(B)#print np.exp(B)print (np.sqrt(B))[0 1 2][0. 1. 1.41421356]#Return the floor of the inputa = np.floor(10*np.random.random((3,4)))pr...
2019-01-30 14:14:06 111
原创 NUMPY_3
import numpy as npa = np.arange(15).reshape(3, 5)aarray([[ 0, 1, 2, 3, 4], [ 5, 6, 7, 8, 9], [10, 11, 12, 13, 14]])a.shape(3, 5)#the number of axes (dimensions) of the ...
2019-01-30 13:49:50 83
原创 numpy_2
import numpy#it will compare the second value to each element in the vector# If the values are equal, the Python interpreter returns True; otherwise, it returns Falsevector = numpy.array([5, 10, 15...
2019-01-30 13:24:01 153
原创 numpy_1
import numpyworld_alcohol = numpy.genfromtxt("world_alcohol.txt", delimiter=",")print(type(world_alcohol))print(world_alcohol)<class 'numpy.ndarray'>[[ nan nan nan ...
2019-01-30 12:46:44 222
模拟通信中信号角度的调制与解调
2018-04-20
labview实例
2018-03-18
MATLAB频谱图
2018-03-18
电容振荡器
2018-03-18
小功率调幅发射机
2018-03-18
电子线路课程设计
2018-03-18
小功率调幅发射机仿真报告
2018-03-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人