json操作 1.1 json轉字符串 1.2 遍歷json的key 將json當做dict,用dict的方法遍歷 1.3 讀json文件 1.4 報錯 https://s...
篩選數(shù)據(jù) 轉置 遍歷 traj_plot.py 排序 通過列名來排序 通過某一列的數(shù)值排序 選擇 series選擇某行 選擇某個行列的值 表示選擇第i行,第0列的值 選擇某一...
讀取數(shù)據(jù) 讀取csv 讀取壓縮包 保存為csv 查看數(shù)據(jù) 參考Basics section 查看數(shù)據(jù)類型 查看head和tail 判斷是否為空 查看index、column和...
創(chuàng)建數(shù)據(jù) 隨機數(shù)據(jù) 創(chuàng)建一個Series,pandas可以生成一個默認的索引 通過numpy創(chuàng)建DataFrame,包含一個日期索引,以及標記的列 其中,np.random....
矩陣變換 shape (3,) (3, 3) reshape 生成新矩陣 指定了第一維后,第二維可以不指定,寫為-1 flatten 把(a,b,c,d)的X reshape...
創(chuàng)建數(shù)據(jù) 創(chuàng)建ndarray NumPy的數(shù)組類被稱作ndarray。通常被稱作數(shù)組。 Numpy庫中的矩陣模塊為ndarray對象,有很多屬性:T,data, dtype,...
轉自:python指數(shù)、冪數(shù)擬合curve_fit 1、一次二次多項式擬合 一次二次比較簡單,直接使用numpy中的函數(shù)即可,polyfit(x, y, degree)。 2...
轉自:https://leetcode-cn.com/articles/longest-substring-without-repeating-characters/ 解決方...
轉自:https://leetcode-cn.com/articles/two-sum/ 方法一:暴力法 暴力法很簡單。遍歷每個元素 ,并查找是否存在一個值與 target ...