降順の数値のセットであるデータフレーム列があり、最小の %10 を新しいデータフレームに割り当てる必要があります。しかし、最も低い %10 を抽出する方法が見つかりませんでした。前もって感謝します。
私が試した最初の機能percentileはnumpyの機能です。
import numpy as np
import pandas as pd
df['Column']` #which has 2400 number
array1 = np.array(df['Column'])
np.percentile(array1,10)` #gave me the variable which is the %10 (just 1 variable) but I need the list of lowest %10
私が試した2番目のコードcutはパンダの機能です
pd.qcut(df['Column'], q =10) # divides the dataframe to 10 equal piece. But I couldn't find a way to extract lowest %10