• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
呢喃的歌声
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2019年1月20日

pandas一些基本操作(DataFram和Series)_3
摘要: import pandas as pd;import numpy as np#通过一维数组创建Chinese = np.array([89,87,86])print(Chinese)print(pd.Series(Chinese))print(pd.Series(Chinese,index=['xi 阅读全文
posted @ 2019-01-20 23:45 呢喃的歌声 阅读(373) 评论(0) 推荐(0)
 
pandas一些基本操作(DataFram和Series)_4
摘要: import numpy as np;import pandas as pd;kill_num=pd.Series([10,12,8,5,0,2,6])#击杀数量#青铜1200-2000#白银2001-2500#黄金2501-3000#铂金3001-3500user_level=pd.Series( 阅读全文
posted @ 2019-01-20 23:45 呢喃的歌声 阅读(249) 评论(0) 推荐(0)
 
pandas一些基本操作(DataFram和Series)_1
摘要: ##生成一个一维数组import numpy as np;nb7 = np.arange(0,100,2);print(nb7)print(" ")##将一维数组转化为两个数组nb7.shape = (2,-1)print(nb7)print(" ")##等差数列 0到10之间取五个数做等差数列nb 阅读全文
posted @ 2019-01-20 23:44 呢喃的歌声 阅读(811) 评论(0) 推荐(0)
 
pandas一些基本操作(DataFram和Series)_2
摘要: import numpy as nparr1 = np.arange(32).reshape(8,4)print(arr1)arr1 = arr1.reshape(-1);print(arr1)arr2 = np.logspace(1,8,8,base=2).reshape(8,1)print(ar 阅读全文
posted @ 2019-01-20 23:44 呢喃的歌声 阅读(2513) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3