pandas.Series.convert_dtypes
pandas 3.1.1 · Series နှင့် Accessors · method
Nullable integer သို့မဟုတ် string လို ပျောက်နေတဲ့ တန်ဖိုးတွေကို လက်ခံတဲ့ dtype တွေ ဖြစ်နိုင်သလား ခန့်မှန်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.convert_dtypes(
infer_objects=…,
convert_string=…,
convert_integer=…,
convert_boolean=…,
convert_floating=…,
dtype_backend='numpy_nullable',
)နမူနာ စမ်းကြည့်ရန်
နမူနာကုဒ်ကို ပြင်ပြီး Run Python နှိပ်ပါ။ ရလဒ်ကို အောက်မှာ ကြည့်နိုင်ပါတယ်။
ထည့်သွင်းနိုင်တဲ့ Arguments
| Parameter | ထည့်သွင်းပုံ | လက်ခံတဲ့ တန်ဖိုးနဲ့ သုံးပုံ |
|---|---|---|
infer_objects |
ချန်ထားလို့ရတယ် အမည်နဲ့ဖြစ်ဖြစ် အစဉ်အတိုင်းဖြစ်ဖြစ် ထည့်နိုင်တယ် |
True / False (bool) ဒီ argument ကို ချန်ထားရင် ပုံမှန်တန်ဖိုး True ကို သုံးပါတယ်။ |
convert_string |
ချန်ထားလို့ရတယ် အမည်နဲ့ဖြစ်ဖြစ် အစဉ်အတိုင်းဖြစ်ဖြစ် ထည့်နိုင်တယ် |
True / False (bool) ဒီ argument ကို ချန်ထားရင် ပုံမှန်တန်ဖိုး True ကို သုံးပါတယ်။ |
convert_integer |
ချန်ထားလို့ရတယ် အမည်နဲ့ဖြစ်ဖြစ် အစဉ်အတိုင်းဖြစ်ဖြစ် ထည့်နိုင်တယ် |
True / False (bool) ဒီ argument ကို ချန်ထားရင် ပုံမှန်တန်ဖိုး True ကို သုံးပါတယ်။ |
convert_boolean |
ချန်ထားလို့ရတယ် အမည်နဲ့ဖြစ်ဖြစ် အစဉ်အတိုင်းဖြစ်ဖြစ် ထည့်နိုင်တယ် |
True / False (bool) |
convert_floating |
ချန်ထားလို့ရတယ် အမည်နဲ့ဖြစ်ဖြစ် အစဉ်အတိုင်းဖြစ်ဖြစ် ထည့်နိုင်တယ် |
True / False (bool) |
dtype_backend |
ချန်ထားလို့ရတယ် အမည်နဲ့ဖြစ်ဖြစ် အစဉ်အတိုင်းဖြစ်ဖြစ် ထည့်နိုင်တယ် ပုံမှန်တန်ဖိုး 'numpy_nullable' |
{'numpy_nullable'၊ 'pyarrow'} Missing value လက်ခံတဲ့ NumPy-backed dtype နဲ့ Arrow-backed dtype တို့ထဲက ရွေးပါတယ်။ |
ပြန်ပေးတဲ့ ရလဒ်
ပြန်ပေးတဲ့ အမျိုးအစားက Series သို့မဟုတ် DataFrame ဖြစ်ပါတယ်။