我有一些Unicode字符串數組,我需要將其移出並保存爲浮點數。迭代通過這個數組的低溫,當前溫度和高溫最簡單的方法是什麼?代碼如下:通過Unicode數組對浮點值進行迭代
import pandas as pd
from bs4 import BeautifulSoup
import requests
import numpy as np
#Arkansas State Plant Board Weather Web data
url1 = "http://170.94.200.136/weather/Inversion.aspx"
response1 = requests.get(url1)
soup1 = BeautifulSoup(response1.content)
table1 = soup1.find("table", id="MainContent_GridView1")
data1 = pd.read_html(str(table1))[0]
array1 = np.array(data1[0:5])
爲什麼Unicode在這裏相關? – Tim
這並未顯示OP已嘗試的示例。 – cwallenpoole