This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = pandas.parse_csv(string) | |
filtered = pandas.dropna(data) | |
avg = numpy.mean(filtered) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
import time | |
# nan を含むデータフレームを作成する --------- | |
# dataframe の作成 | |
df = pd.DataFrame(np.random.rand(10_000_000).reshape(10_000_000, 1)) | |