This article is a memorandum of the processing that was performed when the scraped data type was strange.
df ['column name'] .dtype #DataFrame
np.dtype () #numpy array
Convert to df ['column name']. astype (int) #int
Convert to df ['column name']. dtype (float) #float
df ['column name'] .dtype (str) # Convert to string
df.isnull()
df.dropna()
df.drop (number of lines)
df ['new column name'] = [a, b, c, d, ...]
Recommended Posts