İşte ile çalışıyorum kodudur: Python Reindex Üretim Nan
test3 = pd.Series([1,2,3], index = ['a','b','c'])
test3 = test3.reindex(index = ['f','g','z'])
Yani aslen her şey gayet iyi ve test3 'a' 'b' 'c' bir dizin vardır
import pandas as pd
f 1
g 2
z 3
[docs] (http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.reindex.html#pandas.Series.reindex) bu davranışta nettir: 'Conform Series to opsiyonel dolum mantığı ile yeni indeks, indeks değerlerinin üzerine yazmak istiyorsanız NA/NaN'yi önceki indekste hiçbir değere sahip olmayan konumlara yerleştirirseniz, o zaman 'test3.index = ['f', 'g', 'z'] – EdChum
@EdChum, yeni dizini daha önceki gibi aynı değerlerle doldurmaya nasıl giderim? –