PythonForDataAnalysis icon indicating copy to clipboard operation
PythonForDataAnalysis copied to clipboard

AI 人工智慧開發入門

Results PythonForDataAnalysis issues
Sort by recently updated
recently updated
newest added

![截圖 2021-02-03 下午2 04 36](https://user-images.githubusercontent.com/37975313/106705548-21b2f280-6629-11eb-8ad9-169c5e7122ae.png) _**如題,也pip install tkinter過了,還是無法得到改善 請老師同學們幫忙**_

![註解 2021-01-22 204648](https://user-images.githubusercontent.com/76734200/105492503-feb44480-5cf2-11eb-828a-591f1ff7071f.png) ![註解 2021-01-22 204608](https://user-images.githubusercontent.com/76734200/105492508-ffe57180-5cf2-11eb-8714-7f0bdb880fda.png)

import csv import numpy as np import pandas as pd def convertToInt(s): try: return int(s) except: return 0 def convertToFloat(s): try: return float(s) except: return 0.0 datalist=[] with open('opendata106N0101.csv',encoding='utf-8')as file:...

pop = {'台北':{2000:0.8, 2001:2.4, 2002:2.9}, '高雄':{2000:1.5, 2001:1.7, 2002:3.6} frame1 = pd.DataFrame(pop) frame1 File "", line 3 frame1 = pd.DataFrame(pop) ^ SyntaxError: invalid syntax frame1.T --------------------------------------------------------------------------- NameError Traceback (most recent call...

CSV檔案載點: https://www.twse.com.tw/exchangeReport/STOCK_DAY_AVG?response=csv&date=20200601&stockNo=1438 ![註解 2020-07-01 220424](https://user-images.githubusercontent.com/65228367/86253330-fbd2f480-bbe6-11ea-99c0-adb64cbf1f23.png) 老師我想把dataframe裡面的 -- 傳回上一格的數值的話要怎麼操作?

[https://www.twse.com.tw/exchangeReport/STOCK_DAY?response=csv&date=20200601&stockNo=1438](url) 老師這個CSV檔下載完之後讀取,他預設欄位只有一格....我想把第一列修改成欄位,想問一下要怎麼增加欄位 ![註解 2020-06-28 185033](https://user-images.githubusercontent.com/65228367/85945432-4e56ab80-b970-11ea-9c0a-dabb93edf477.png)

![Q2](https://user-images.githubusercontent.com/65228367/82429672-e5e9f400-9abe-11ea-9bf9-524ec0afa344.png)

![Q2](https://user-images.githubusercontent.com/65228367/81682092-35a93980-9487-11ea-8b73-a1879f1b05d6.png) 老師我在for in 裡面for的參數單純設一個i當作參數他跑不動,但我如果設XXX,XXX格式的參數的話,就跑得出東西,想請問一下這是什麼原理?@@

老師您好:我想試著用Python寫寫以下的資訊,但不知該用哪些函數搭配使用!麻煩老師指點一下~感恩!! 租賃專法對「委託代管業代管」或「出租給包租業轉租」一年以上的個人房東祭出所得稅減免優惠,每個月資金6000以下不用繳稅;月租金6000元到兩萬元的部分,必要費用減除率為53%;月租金超過兩萬元部分,全額納入所得稅。