pandas API Reference
3.1.1
pandas 3.1.1 ရဲ့ function နဲ့ method တွေ ဘာလုပ်လဲ၊ ဘယ်လို ခေါ်သုံးရလဲဆိုတာ ကြည့်နိုင်ပါတယ်။ အသုံးများတဲ့ API တွေအတွက် code နမူနာတွေပါ ပါပါတယ်။
ဒီစာမျက်နှာမှာ
Functions၊ Methods နှင့် Attributes
pd.to_numeric() လို function ကို pandas ကနေ ခေါ်သုံးပါတယ်။ frame.head() လို method ကို object တစ်ခုကနေ ခေါ်သုံးပါတယ်။ frame.shape လို attribute သို့မဟုတ် property ကို ကွင်းစကွင်းပိတ် မထည့်ဘဲ ဖတ်ပါတယ်။ Reference မှာ API အမည်တွေကို pandas နဲ့ စရေးထားပြီး method တစ်ခုက ဘယ် class မှာ ပါလဲဆိုတာ အမည်ထဲမှာ ကြည့်နိုင်ပါတယ်။
import pandas as pd
frame = pd.DataFrame({"units": ["4", "7", "invalid"]})
units = pd.to_numeric(frame["units"], errors="coerce")
print(units.head(2).tolist())
print(frame.shape)
print(units.isna().sum())
[4.0, 7.0] (3, 1) 1
နမူနာ Code တွေအတွက် Data
ဒီ setup code ကို notebook သို့မဟုတ် Python session မှာ တစ်ကြိမ် run ပါ။ အောက်က နမူနာတွေမှာ orders နဲ့ teams ဇယားတွေကို သုံးထားပါတယ်။ Order သုံးခုထဲက တစ်ခုမှာ quantity မရှိတာကြောင့် row အားလုံးရေတွက်တာနဲ့ value ရှိတဲ့ row တွေကိုပဲ ရေတွက်တာကို ယှဉ်ကြည့်နိုင်ပါတယ်။
from io import StringIO
import pandas as pd
orders = pd.DataFrame({
"team": ["North", "North", "South"],
"day": pd.to_datetime(["2025-01-01", "2025-01-02", "2025-01-03"]),
"units": [4, None, 7],
})
teams = pd.DataFrame({
"team": ["North", "South"],
"region": ["A", "B"],
})
print(orders.groupby("team")["units"].agg(["size", "count", "sum"]).to_dict())
{'size': {'North': 2, 'South': 1}, 'count': {'North': 1, 'South': 1}, 'sum': {'North': 4.0, 'South': 7.0}}API ရှာဖွေရန်
Sidebar မှာ အုပ်စုတစ်ခု ဖွင့်ကြည့်ပါ။ အောက်မှာလည်း read_csv၊ groupby၊ str.strip လို အမည်တွေ ရှာနိုင်ပါတယ်။ အမည်တစ်ခု ရွေးပြီး parameters ဖတ်တာနဲ့ နမူနာ code ကို run တာ လုပ်နိုင်ပါတယ်။
စုစုပေါင်း 1,794 ခုအနက် 1,794 ခု
ကိုက်ညီတဲ့ API အမည် မရှိပါ။ အခြားအမည် သို့မဟုတ် အုပ်စုနဲ့ ရှာကြည့်ပါ။
အထွေထွေ Functions (37)
-
DataFrame interchange protocol သုံးနိုင်တဲ့ object ကနေ ဇယားဒေတာကို ဖတ်ယူပါတယ်။
ခေါ်သုံးပုံ
api.interchange.from_dataframe(df[, allow_copy]) pandas.api.typing.Expressionclasspandas.bdate_rangefunctionအလုပ်လုပ်တဲ့ရက်တွေအတွက် DatetimeIndex တည်ဆောက်ပါတယ်။ အပတ်စဉ် အလုပ်ရက်နဲ့ ပိတ်ရက်တွေကို ကိုယ်တိုင် သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
pd.bdate_range([start, end, periods, freq, tz, ...])နမူနာ
pd.bdate_range("2025-01-03", periods=3)pandas.colfunctionassign နဲ့ loc လို operation တွေမှာ နောက်မှတွက်မယ့် column expression ကို တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
pd.col(col_name)pandas.concatfunctionpandas object တွေကို row အလိုက် ဆက်ပါတယ်။ Column အလိုက် ဘေးချင်းကပ် ဆက်ချင်ရင် axis=1 သုံးပါ။
ခေါ်သုံးပုံ
pd.concat(objs, *[, axis, join, ignore_index, ...])နမူနာ
pd.concat([orders.iloc[:2], orders.iloc[2:]], ignore_index=True)pandas.crosstabfunctionCategory နှစ်ခု တွဲဖက်ပေါ်လာတဲ့ အကြိမ်ရေကို ဇယားနဲ့ ပြပါတယ်။
ခေါ်သုံးပုံ
pd.crosstab(index, columns[, values, rownames, ...])နမူနာ
pd.crosstab(orders["team"], orders["units"].notna())pandas.cutfunctionဂဏန်းတွေကို သတ်မှတ်ထားတဲ့ အပိုင်းအခြားတွေထဲ ခွဲထည့်ပါတယ်။
ခေါ်သုံးပုံ
pd.cut(x, bins[, right, labels, retbins, ...])နမူနာ
pd.cut(orders["units"], bins=[0, 5, 10], labels=["Small", "Large"])pandas.date_rangefunctionသတ်မှတ်ထားတဲ့ frequency အတိုင်း ဆက်တိုက် ရက်စွဲတွေကို DatetimeIndex အဖြစ် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.date_range([start, end, periods, freq, tz, ...])နမူနာ
pd.date_range("2025-01-01", periods=3, freq="D")pandas.evalfunctionVariable သို့မဟုတ် ဇယား column တွေနဲ့ ရေးထားတဲ့ ယုံကြည်ရတဲ့ expression ကို တွက်ပေးပါတယ်။ DataFrame မှာ column အမည်တွေကို expression ထဲ သုံးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
pd.eval(expr[, parser, engine, local_dict, ...])pandas.factorizefunctionမထပ်တဲ့ တန်ဖိုးတစ်မျိုးစီအတွက် ကိန်းပြည့် code တစ်ခု သတ်မှတ်ပြီး code တွေနဲ့ မထပ်တဲ့တန်ဖိုးစာရင်းကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.factorize(values[, sort, use_na_sentinel, ...])နမူနာ
pd.factorize(orders["team"])pandas.from_dummiesfunctionDummy indicator column တွေကနေ မူလ category column တွေကို ပြန်တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.from_dummies(data[, sep, default_category])pandas.get_dummiesfunctionCategory တစ်ခုစီအတွက် သီးသန့် indicator column ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
pd.get_dummies(data[, prefix, prefix_sep, ...])နမူနာ
pd.get_dummies(orders["team"], prefix="team")pandas.infer_freqfunctionရက်စွဲ ဒါမှမဟုတ် ကြာချိန်တန်ဖိုးတွေ အညီအမျှ ခြားနေရင် သူတို့ရဲ့ frequency ကို ခန့်မှန်းပေးပါတယ်။
ခေါ်သုံးပုံ
pd.infer_freq(index)pandas.interval_rangefunctionနယ်နိမိတ်တွေ အညီအမျှခြားတဲ့ IntervalIndex တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.interval_range([start, end, periods, freq, ...])နမူနာ
pd.interval_range(start=0, end=10, periods=2)-
ဒေတာနဲ့ metadata အပါအဝင် သတ်မှတ်ထားသလို Stata ဒေတာဖိုင်ကို ရေးပေးပါတယ်။
ခေါ်သုံးပုံ
StataWriter.write_file() pandas.isnafunctionMissing value ရှိ၊ မရှိ စစ်ပါတယ်။ Value တစ်ခုအတွက် boolean၊ data အများကြီးအတွက် boolean mask ရပါတယ်။
ခေါ်သုံးပုံ
pd.isna(obj)နမူနာ
pd.isna(orders["units"])pandas.isnullfunctionisna နဲ့ တူပြီး ဘယ်နေရာတွေမှာ တန်ဖိုးပျောက်လဲ စစ်ပါတယ်။
ခေါ်သုံးပုံ
pd.isnull(obj)pandas.lreshapefunctionWide ပုံစံမှာ အရွယ်တူ column အစုတွေကို တန်းညှိပြီး long ပုံစံ column တွေအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
pd.lreshape(data, groups[, dropna])pandas.meltfunctionIdentifier column တွေကို ထားပြီး ကျန် column တွေရဲ့ အမည်နဲ့ value ကို row တွေအဖြစ် ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
pd.melt(frame[, id_vars, value_vars, var_name, ...])နမူနာ
pd.melt(orders, id_vars="team", value_vars=["units"])pandas.mergefunctionTable နှစ်ခုကို key တူတဲ့ row တွေ ချိတ်ပေးပါတယ်။ how နဲ့ join အမျိုးအစား ရွေးပြီး validate နဲ့ key ဆက်စပ်ပုံကို စစ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
pd.merge(left, right[, how, on, left_on, ...])နမူနာ
pd.merge(orders, teams, on="team", how="left", validate="many_to_one")pandas.merge_asoffunctionဘယ်ဘက်က key တစ်ခုစီကို တစ်ဖက်ဇယားမှာရှိတဲ့ အနီးစပ်ဆုံး ကိုက်ညီတဲ့ key နဲ့ တွဲပေးပါတယ်။ Key တွေကို အရင်စီပြီး direction နဲ့ tolerance ကို သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
pd.merge_asof(left, right[, on, left_on, ...])pandas.merge_orderedfunctionTime series လို အစဉ်လိုက် ဒေတာတွေကို join လုပ်ပေးပါတယ်။ ရလာတဲ့ အစဉ်ထဲမှာ ရှေ့တန်ဖိုးနဲ့ ဖြည့်လို့လည်း ရပါတယ်။
ခေါ်သုံးပုံ
pd.merge_ordered(left, right[, on, left_on, ...])pandas.notnafunctionMissing မဖြစ်တဲ့ value ရှိရာနေရာတွေကို True နဲ့ ပြပါတယ်။
ခေါ်သုံးပုံ
pd.notna(obj)နမူနာ
pd.notna(orders["units"])pandas.notnullfunctionnotna နဲ့ တူပြီး တန်ဖိုးရှိတဲ့နေရာတွေကို ရှာပါတယ်။
ခေါ်သုံးပုံ
pd.notnull(obj)pandas.period_rangefunctionလ၊ သုံးလပတ် စတဲ့ ဆက်တိုက် အချိန်ကာလတွေ ထုတ်ပြီး PeriodIndex အဖြစ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.period_range([start, end, periods, freq, name])နမူနာ
pd.period_range("2025-01", periods=3, freq="M")pandas.pivotfunctionColumn တစ်ခုထဲက value တွေကို column အသစ်တွေအဖြစ် ဖြန့်ပါတယ်။ ထွက်လာမယ့် cell တစ်ခုမှာ source value တစ်ခုစီသာ ရှိရပါမယ်။
ခေါ်သုံးပုံ
pd.pivot(data, *, columns[, index, values])နမူနာ
pd.pivot(orders, index="day", columns="team", values="units")pandas.pivot_tablefunctionRow နဲ့ column အလိုက် အုပ်စုခွဲပြီး summary table ထုတ်ပါတယ်။ တွက်မယ့်နည်းကို aggfunc နဲ့ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
pd.pivot_table(data[, values, index, columns, ...])နမူနာ
pd.pivot_table(orders, index="team", values="units", aggfunc="sum")pandas.qcutfunctionအပိုင်းတစ်ခုစီမှာ observation အရေအတွက် နီးပါးတူအောင် quantile အလိုက် ခွဲပါတယ်။
ခေါ်သုံးပုံ
pd.qcut(x, q[, labels, retbins, precision, ...])နမူနာ
pd.qcut(pd.Series([10, 20, 30, 40]), q=2)pandas.timedelta_rangefunctionသတ်မှတ်ထားတဲ့ အစနဲ့ အဆုံးကြားမှာ ပုံမှန်ခြားထားတဲ့ ကြာချိန်တန်ဖိုးတွေနဲ့ TimedeltaIndex တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.timedelta_range([start, end, periods, freq, ...])နမူနာ
pd.timedelta_range("0h", periods=3, freq="1h")pandas.to_datetimefunctionရက်စွဲနဲ့ အချိန်အဖြစ် ပြောင်းပါတယ်။ ကိုယ့်ရက်စွဲပုံစံကို format နဲ့ သတ်မှတ်နိုင်ပြီး ဖတ်လို့မရတာတွေကို errors="coerce" နဲ့ NaT အဖြစ် ထားနိုင်ပါတယ်။
ခေါ်သုံးပုံ
pd.to_datetime(arg[, errors, dayfirst, ...])နမူနာ
pd.to_datetime(["2025-01-01", "invalid"], format="%Y-%m-%d", errors="coerce")pandas.to_numericfunctionစာသားတွေကို ဂဏန်းအဖြစ် ပြောင်းပါတယ်။ ပြောင်းလို့မရတဲ့ value ကို missing အဖြစ် သတ်မှတ်ချင်ရင် errors="coerce" သုံးပါ။
ခေါ်သုံးပုံ
pd.to_numeric(arg[, errors, downcast, ...])နမူနာ
pd.to_numeric(pd.Series(["4", "invalid"]), errors="coerce")pandas.to_timedeltafunctionအချိန်ကြာချိန်အဖြစ် ပြောင်းပါတယ်။ ဂဏန်းတွေနဲ့ ပေးရင် unit နဲ့ ကြာချိန်ယူနစ် သတ်မှတ်ပါ။
ခေါ်သုံးပုံ
pd.to_timedelta(arg[, unit, errors])နမူနာ
pd.to_timedelta([15, 30], unit="min")-
ရက်စွဲစာသားတစ်ခုကို ကြည့်ပြီး strptime ပုံစံကို ခန့်မှန်းပေးပါတယ်။
ခေါ်သုံးပုံ
tseries.api.guess_datetime_format(dt_str[, ...]) pandas.uniquefunctionတန်ဖိုးတွေကို ပြန်မစီဘဲ ပထမဆုံးတွေ့တဲ့ အစဉ်အတိုင်း မထပ်တဲ့တန်ဖိုးတွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.unique(values)နမူနာ
pd.unique(orders["team"])pandas.util.hash_arrayfunctionDimension တစ်ခုရှိတဲ့ array ရဲ့ element တစ်ခုစီအတွက် 64-bit hash တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
util.hash_array(vals[, encoding, hash_key, ...])pandas.util.hash_pandas_objectfunctionPandas object ထဲက element တစ်ခုစီအတွက် hash တွက်ပေးပါတယ်။ Index ကိုပါ ထည့်တွက်လို့ရပါတယ်။
ခေါ်သုံးပုံ
util.hash_pandas_object(obj[, index, ...])pandas.wide_to_longfunctionsales_2025 နဲ့ sales_2026 လို ရှေ့ဆက်စာသားတူပြီး နောက်ဆက်စာသား ကွာတဲ့ column တွေကို row တွေအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
pd.wide_to_long(df, stubnames, i, j[, sep, suffix])
Data ဖတ်ခြင်းနှင့် ထုတ်ယူခြင်း (59)
pandas.api.typing.JsonReaderclass-
Iceberg catalog ကတစ်ဆင့် record တွေကို Apache Iceberg table ထဲ ရေးပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_iceberg(table_identifier[, ...]) pandas.DataFrame.to_xmlmethodDataFrame ရဲ့ row နဲ့ field တွေကို XML document အဖြစ် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_xml([path_or_buffer, index, ...])pandas.ExcelFileclasspandas.ExcelFile.bookpropertypandas.ExcelFile.parsemethodဖွင့်ထားတဲ့ ExcelFile က worksheet တွေကို ဖတ်ပါတယ်။ ဒီ method ကို pandas 3.1.1 မှာ deprecated အဖြစ် သတ်မှတ်ထားပါတယ်။ ဖွင့်ထားတဲ့ workbook ကို read_excel နဲ့ ဖတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
ExcelFile.parse([sheet_name, header, names, ...])pandas.ExcelFile.sheet_namespropertypandas.ExcelWriterclasspandas.HDFStore.appendmethodရှိပြီးသား row တွေကို မပြောင်းဘဲ HDFStore table ထဲ row အသစ်တွေ ဆက်ထည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
HDFStore.append(key, value[, format, axes, ...])-
ဆက်စပ်နေတဲ့ HDF table တွေအလိုက် column ခွဲပြီး row အသစ်တွေကို ဆက်ထည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
HDFStore.append_to_multiple(d, value, selector) pandas.HDFStore.copymethodသိမ်းထားတဲ့ pandas object တွေကို အခြား HDF5 ဖိုင်တစ်ခုထဲ ကူးပေးပါတယ်။ ကူးမယ့် key တွေကို သီးခြား ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
HDFStore.copy(file[, mode, propindexes, ...])-
Query မှာ index သုံးနိုင်ဖို့ သိမ်းထားတဲ့ column တွေပေါ်မှာ PyTables index ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
HDFStore.create_table_index(key[, columns, ...]) pandas.HDFStore.flushmethodHDFStore မှာ ရေးဖို့ကျန်နေတဲ့ ဒေတာတွေကို disk ပေါ် အပြီးရေးပေးပါတယ်။
ခေါ်သုံးပုံ
HDFStore.flush([fsync])pandas.HDFStore.getmethodKey နဲ့ object တစ်ခုကို ယူပါတယ်။ Series သို့မဟုတ် DataFrame မှာ key မတွေ့ရင် သတ်မှတ်ထားတဲ့ ပုံမှန်တန်ဖိုးကို ပြန်ပေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
HDFStore.get(key)-
သတ်မှတ်ထားတဲ့ key အောက်က object ကို စီမံပေးတဲ့ HDFStore storer ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
HDFStore.get_storer(key) pandas.HDFStore.groupsmethodHDFStore ရဲ့ အပေါ်ဆုံးအဆင့်မှာ ရှိတဲ့ node တွေကို စာရင်းထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
HDFStore.groups()pandas.HDFStore.infomethodHDFStore ရဲ့ ဖိုင်လမ်းကြောင်းနဲ့ သိမ်းထားတဲ့ object တွေကို ဖော်ပြပေးပါတယ်။
ခေါ်သုံးပုံ
HDFStore.info()pandas.HDFStore.is_openpropertypandas.HDFStore.keysmethodသိမ်းထားတဲ့ object တွေရဲ့ key တွေကို HDF group လမ်းကြောင်းနဲ့အတူ စာရင်းထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
HDFStore.keys([include])pandas.HDFStore.putmethodpandas object ကို HDFStore ထဲက key တစ်ခုမှာ သိမ်းပေးပါတယ်။ အဲဒီနေရာမှာ ရှိပြီးသား တန်ဖိုးကို အစားထိုးပါတယ်။
ခေါ်သုံးပုံ
HDFStore.put(key, value[, format, index, ...])pandas.HDFStore.removemethodHDFStore ထဲက object ကို ဖယ်ပေးပါတယ်။ သတ်မှတ်ချက်နဲ့ ကိုက်တဲ့ row တွေကိုပဲလည်း ဖယ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
HDFStore.remove(key[, where, start, stop])pandas.HDFStore.selectmethodHDFStore ထဲက table သို့မဟုတ် object ကို ဖတ်ပေးပါတယ်။ Table အတွက် where နဲ့ ဖတ်မယ့် row တွေကို ကန့်သတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
HDFStore.select(key[, where, start, stop, ...])-
HDFStore table query နဲ့ ကိုက်ညီတဲ့ row တွေရဲ့ နေရာနံပါတ်ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
HDFStore.select_as_coordinates(key[, where, ...]) -
ကိုက်ညီတဲ့ row တွေရှိတဲ့ HDFStore table အများအပြားက column တွေကို ဖတ်ပြီး ပေါင်းပေးပါတယ်။
ခေါ်သုံးပုံ
HDFStore.select_as_multiple(keys[, where, ...]) -
HDF table ထဲမှာ သိမ်းထားတဲ့ column တစ်ခုကို ဖတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
HDFStore.select_column(key, column[, start, ...]) pandas.HDFStore.walkmethodHDF ဖိုင်ထဲက group တွေကို တစ်ခုချင်း ကြည့်ပြီး သိမ်းထားတဲ့ pandas object တွေကို ရှာနိုင်ပါတယ်။
ခေါ်သုံးပုံ
HDFStore.walk([where])-
ဒေတာကို Excel sheet ထဲ ရေးပေးပါတယ်။ Workbook တစ်ခုထဲမှာ sheet အများကြီး ရေးမယ်ဆို ExcelWriter သုံးပါ။
ခေါ်သုံးပုံ
Styler.to_excel(excel_writer[, sheet_name, ...]) -
ဒေတာကို HTML ဇယားအဖြစ် ထုတ်ပေးပါတယ်။ Styler ရဲ့ output မှာ သတ်မှတ်ထားတဲ့ style တွေပါ ပါလာပါတယ်။
ခေါ်သုံးပုံ
Styler.to_html([buf, table_uuid, ...]) -
ဒေတာကို LaTeX ဇယားပုံစံနဲ့ ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.to_latex([buf, column_format, ...]) -
DataFrame သို့မဟုတ် Series ကနေ ဒေတာဖွဲ့စည်းပုံကို ဖော်ပြတဲ့ JSON Table Schema တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
build_table_schema(data[, index, ...]) pandas.io.parsers.readers.TextFileReaderclasspandas.io.parsers.TextFileReaderclass-
Parser နဲ့ ဖွင့်ထားတဲ့ ဖိုင်ကို ပိတ်ပေးပါတယ်။ အခြား reader နဲ့ writer တွေမှာလည်း သုံးထားတဲ့ resource တွေကို ပြန်လွှတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
TextFileReader.close() -
TextFileReader ကနေ နောက်တစ်ပိုင်းကို ဖတ်ပေးပါတယ်။ သတ်မှတ်ထားတဲ့ အပိုင်းအရွယ်အစားအစား ကိုယ်လိုတဲ့ အရွယ်အစား ထည့်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
TextFileReader.get_chunk([size]) -
TextFileReader ကနေ တောင်းထားတဲ့ အရေအတွက်အတိုင်း နောက်ထပ် row တွေကို ဖတ်ပြီး DataFrame ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
TextFileReader.read([nrows]) pandas.io.stata.StataReader.data_labelproperty-
Stata value-label အစုတစ်ခုစီအတွက် code နဲ့ သက်ဆိုင်ရာ label တွဲထားတဲ့ mapping ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
StataReader.value_labels() -
Stata column အမည်တွေနဲ့ သူတို့ရဲ့ ရှင်းပြချက် label တွေ တွဲထားတဲ့ mapping ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
StataReader.variable_labels() pandas.json_normalizefunctionအဆင့်ဆင့် ထည့်ထားတဲ့ JSON record တွေကို column တွေအဖြစ် ဖြန့်ပါတယ်။
ခေါ်သုံးပုံ
pd.json_normalize(data[, record_path, meta, ...])နမူနာ
pd.json_normalize([{"id": 1, "location": {"city": "Yangon"}}])pandas.read_clipboardfunctionစက်ရဲ့ clipboard ထဲက delimiter နဲ့ ခွဲထားတဲ့ စာသားကို DataFrame အဖြစ် ဖတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.read_clipboard([sep, dtype_backend])pandas.read_csvfunctionCSV ဖိုင်ကို DataFrame အဖြစ် ဖတ်ပါတယ်။ ရှေ့မှာ သုညပါတဲ့ ID တွေအတွက် dtype သတ်မှတ်ပါ။ လိုတဲ့ column တွေကိုပဲ ဖတ်ချင်ရင် usecols သုံးပါ။
ခေါ်သုံးပုံ
pd.read_csv(filepath_or_buffer, *[, sep, ...])နမူနာ
pd.read_csv(StringIO("id,units\n001,4\n"), dtype={"id": "string"})pandas.read_excelfunctionExcel ဖိုင်ထဲက sheet တစ်ခု သို့မဟုတ် အများကြီးကို ဖတ်ပါတယ်။ sheet_name နဲ့ ဖတ်မယ့် sheet ကို ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
pd.read_excel(io[, sheet_name, header, names, ...])pandas.read_featherfunctionFeather ဖိုင်ကို DataFrame အဖြစ် ဖတ်ပေးပါတယ်။ ဖတ်မယ့် column တွေကိုလည်း ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
pd.read_feather(path[, columns, use_threads, ...])pandas.read_fwffunctionစာကြောင်းတိုင်းမှာ column တစ်ခုစီရဲ့ နေရာက သတ်မှတ်ထားတဲ့ စာသားဖိုင်ကို ဇယားအဖြစ် ဖတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.read_fwf(filepath_or_buffer, *[, colspecs, ...])pandas.read_hdffunctionHDF5 ထဲက object ကို key နဲ့ ရွေးဖတ်ပေးပါတယ်။ Table format နဲ့ သိမ်းထားရင် row တွေကိုပါ စစ်ထုတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
pd.read_hdf(path_or_buf[, key, mode, errors, ...])pandas.read_htmlfunctionHTML ထဲက သတ်မှတ်ချက်နဲ့ ကိုက်တဲ့ ဇယားတွေကို ထုတ်ပြီး DataFrame စာရင်းအဖြစ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.read_html(io, *[, match, flavor, header, ...])pandas.read_icebergfunctionApache Iceberg catalog ကတစ်ဆင့် table ဒေတာကို ဖတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.read_iceberg(table_identifier[, ...])pandas.read_jsonfunctionJSON data ကို pandas object အဖြစ် ဖတ်ပါတယ်။ တစ်ကြောင်းစီမှာ JSON record တစ်ခုစီ ပါရင် lines=True သုံးပါ။
ခေါ်သုံးပုံ
pd.read_json(path_or_buf, *[, orient, typ, ...])pandas.read_orcfunctionORC ဖိုင်ကို DataFrame အဖြစ် ဖတ်ပေးပါတယ်။ ဖတ်မယ့် column တွေကိုလည်း ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
pd.read_orc(path[, columns, dtype_backend, ...])pandas.read_parquetfunctionParquet ဖိုင် ဒါမှမဟုတ် dataset ကို ဖတ်ပါတယ်။ columns နဲ့ လိုတဲ့ column တွေကို ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
pd.read_parquet(path[, engine, columns, ...])pandas.read_picklefunctionDataFrame လို pickle နဲ့ သိမ်းထားတဲ့ Python object ကို ပြန်ဖွင့်ပေးပါတယ်။ ယုံကြည်ရတဲ့ ရင်းမြစ်က pickle ဖိုင်ကိုပဲ ဖွင့်ပါ။
ခေါ်သုံးပုံ
pd.read_pickle(filepath_or_buffer[, ...])pandas.read_sasfunctionSAS XPORT သို့မဟုတ် SAS7BDAT ဖိုင်ကနေ ဒေတာကို ဖတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.read_sas(filepath_or_buffer, *[, format, ...])pandas.read_spssfunctionSPSS ဒေတာဖိုင်ကို DataFrame အဖြစ် ဖတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.read_spss(path[, usecols, ...])pandas.read_sqlfunctionDatabase table တစ်ခု သို့မဟုတ် SQL query ရလဒ်ကို DataFrame အဖြစ် ဖတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.read_sql(sql, con[, index_col, ...])pandas.read_sql_queryfunctionSQL query ရလဒ်ကို DataFrame အဖြစ် ဖတ်ပါတယ်။ Query ထဲ ထည့်မယ့် value တွေအတွက် params သုံးပါ။
ခေါ်သုံးပုံ
pd.read_sql_query(sql, con[, index_col, ...])pandas.read_sql_tablefunctionအမည်နဲ့ ရွေးထားတဲ့ SQL database table ရဲ့ column တွေကို ဖတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.read_sql_table(table_name, con[, schema, ...])pandas.read_statafunctionStata ဒေတာကို ဖတ်ပေးပါတယ်။ Label ပါတဲ့ တန်ဖိုးတွေကို category အဖြစ် ပြောင်းလို့ရပါတယ်။
ခေါ်သုံးပုံ
pd.read_stata(filepath_or_buffer, *[, ...])pandas.read_tablefunctionDelimiter နဲ့ ခွဲထားတဲ့ စာသားကို DataFrame အဖြစ် ဖတ်ပေးပါတယ်။ ပုံမှန်အားဖြင့် tab နဲ့ ခွဲဖတ်ပါတယ်။
ခေါ်သုံးပုံ
pd.read_table(filepath_or_buffer, *[, sep, ...])pandas.read_xmlfunctionXML ထဲက ရွေးလိုက်တဲ့ element တွေကို DataFrame ရဲ့ row နဲ့ column တွေအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
pd.read_xml(path_or_buffer, *[, xpath, ...])
DataFrame (219)
pandas.DataFrameclasspandas.DataFrame.__add__methodလက်ရှိ object မှာ + သုံးတဲ့အခါ သက်ဆိုင်ရာ label တွေ တွဲပုံ သို့မဟုတ် offset တွက်ပုံအတိုင်း ပေါင်းပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.__add__(other)-
ဇယားဒေတာကို DataFrame interchange protocol ကတစ်ဆင့် သုံးနိုင်အောင် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.__dataframe__([nan_as_null, ...]) -
လက်ရှိ object မှာ ~ operator သုံးလို့ရအောင် လုပ်ပေးပါတယ်။ True/False mask မှာ True ကို False၊ False ကို True ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
DataFrame.__invert__() -
တစ်ခုချင်း လည်ပတ်ယူလို့ရအောင် လုပ်ပေးပါတယ်။ DataFrame မှာ column တွေ၊ GroupBy မှာတော့ အုပ်စု key နဲ့ အုပ်စု object ကို တွဲပြီး ရပါတယ်။
ခေါ်သုံးပုံ
DataFrame.__iter__() pandas.DataFrame.absmethodဂဏန်းတန်ဖိုးတစ်ခုစီရဲ့ absolute value ကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.abs()pandas.DataFrame.addmethodကိုက်ညီတဲ့ တန်ဖိုးတွေကို ပေါင်းပါတယ်။ pandas object တွေမှာ label တူတာချင်း တွဲပြီး ပေါင်းပါတယ်။
ခေါ်သုံးပုံ
DataFrame.add(other[, axis, level, fill_value])-
ရွေးထားတဲ့ axis ရဲ့ label တွေရှေ့မှာ စာသားထည့်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.add_prefix(prefix[, axis]) -
ရွေးထားတဲ့ axis ရဲ့ label တွေနောက်မှာ စာသားထည့်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.add_suffix(suffix[, axis]) pandas.DataFrame.aggmethodပေးထားတဲ့ operation အမည် သို့မဟုတ် callable နဲ့ တန်ဖိုးတွေကို စုတွက်ပါတယ်။ ရလဒ်ပုံစံက သုံးတဲ့ operation နဲ့ ဒေတာပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.agg([func, axis])-
agg နဲ့ ခေါ်သုံးပုံတူပြီး operation တစ်ခု သို့မဟုတ် အများကြီးနဲ့ တန်ဖိုးတွေ စုတွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.aggregate([func, axis]) pandas.DataFrame.alignmethodLabel တွေ ကိုက်ညီအောင် object နှစ်ခုကို ညှိပေးပါတယ်။ ဘယ် label တွေ ထားမလဲဆိုတာ join နဲ့ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.align(other[, join, axis, level, ...])pandas.DataFrame.allmethodရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲက တန်ဖိုးအားလုံး True ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.all(*[, axis, bool_only, skipna])pandas.DataFrame.anymethodရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲမှာ True ဖြစ်တဲ့ တန်ဖိုး အနည်းဆုံးတစ်ခု ပါမပါ စစ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.any(*[, axis, bool_only, skipna])pandas.DataFrame.applymethodပုံမှန်အတိုင်းဆို column တစ်ခုချင်းစီကို function ပေးပြီး တွက်ပါတယ်။ axis=1 ဆို row တစ်ခုချင်းစီ တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.apply(func[, axis, raw, ...])pandas.DataFrame.asfreqmethodဒေတာကို သတ်မှတ်ထားတဲ့ frequency နဲ့ ညှိပေးပါတယ်။ အချိန်ပိုင်းအလိုက် စုတွက်ဖို့ resample ကို သုံးပါ။
ခေါ်သုံးပုံ
DataFrame.asfreq(freq[, method, how, ...])pandas.DataFrame.asofmethodပေးထားတဲ့ label မတိုင်ခင် သို့မဟုတ် label နေရာမှာ ရှိတဲ့ နောက်ဆုံး အသုံးပြုလို့ရတဲ့ တန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
DataFrame.asof(where[, subset])pandas.DataFrame.assignmethodColumn အသစ် ထည့်ထားတဲ့ သို့မဟုတ် ရှိပြီးသား column အစားထိုးထားတဲ့ DataFrame အသစ်ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.assign(**kwargs)နမူနာ
orders.assign(double_units=lambda frame: frame["units"] * 2)pandas.DataFrame.astypemethodColumn တွေရဲ့ dtype ကို ပြောင်းပါတယ်။ Dictionary နဲ့ column တစ်ခုချင်းစီအတွက် type သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.astype(dtype[, copy, errors])နမူနာ
orders.astype({"units": "Float64"})pandas.DataFrame.atpropertyRow နဲ့ column label ကို သုံးပြီး cell တစ်ခုရဲ့ တန်ဖိုးကို ဖတ်နိုင်၊ ပြင်နိုင်ပါတယ်။
pandas.DataFrame.at_timemethodDatetime index ထဲမှာ သတ်မှတ်ထားတဲ့ နာရီအချိန်နဲ့ ကိုက်ညီတဲ့ row တွေကို ရွေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.at_time(time[, asof, axis])pandas.DataFrame.attrspropertypandas.DataFrame.axesproperty-
ရက်စွဲကို သီးသန့်မစစ်ဘဲ နာရီအချိန် အပိုင်းအခြားတစ်ခုထဲ ပါတဲ့ row တွေကို ရွေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.between_time(start_time, end_time) pandas.DataFrame.bfillmethodပျောက်နေတဲ့နေရာကို ရွေးထားတဲ့ဦးတည်ချက်မှာ နောက်ထပ်တွေ့တဲ့ တန်ဖိုးနဲ့ ဖြည့်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.bfill(*[, axis, inplace, limit, ...])pandas.DataFrame.boxplotmethodအလယ်တန်ဖိုး၊ ဒေတာပျံ့နှံ့ပုံနဲ့ ဖြစ်နိုင်တဲ့ outlier တွေကို ယှဉ်ကြည့်ဖို့ box plot ဆွဲပါတယ်။
ခေါ်သုံးပုံ
DataFrame.boxplot([column, by, ax, ...])pandas.DataFrame.clipmethodသတ်မှတ်ထားတဲ့ အနိမ့်ဆုံးအောက် ရောက်တဲ့တန်ဖိုးကို အနိမ့်ဆုံးနဲ့ အစားထိုးပြီး အမြင့်ဆုံးထက် ကျော်တာကို အမြင့်ဆုံးနဲ့ အစားထိုးပါတယ်။ ကြားထဲကတန်ဖိုးတွေကို ဆက်ထားပါတယ်။
ခေါ်သုံးပုံ
DataFrame.clip([lower, upper, axis, inplace])နမူနာ
orders[["units"]].clip(upper=5)pandas.DataFrame.columnsattributeColumn label တွေပါတဲ့ Index ကို ပြန်ပေးပါတယ်။
pandas.DataFrame.combinemethodLabel အလိုက် ညှိထားတဲ့ object တွေကို function နဲ့ ပေါင်းစပ်ပါတယ်။ DataFrame က column တွေပေးပြီး Series က တန်ဖိုးတစ်ခုချင်းစီ ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.combine(other, func[, fill_value, ...])-
ရှိပြီးသား တန်ဖိုးတွေကို ဆက်ထားပြီး ပျောက်နေတဲ့ တန်ဖိုးတွေကို တခြား object ထဲက label တူတဲ့တန်ဖိုးနဲ့ ဖြည့်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.combine_first(other) pandas.DataFrame.comparemethodLabel တူတဲ့ object နှစ်ခုကြား ကွာခြားတဲ့တန်ဖိုးတွေကို ဘေးချင်းကပ် ပြပါတယ်။
ခေါ်သုံးပုံ
DataFrame.compare(other[, align_axis, ...])-
Nullable integer သို့မဟုတ် string လို ပျောက်နေတဲ့ တန်ဖိုးတွေကို လက်ခံတဲ့ dtype တွေ ဖြစ်နိုင်သလား ခန့်မှန်းပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.convert_dtypes([infer_objects, ...]) pandas.DataFrame.copymethodလက်ရှိ object ကို မိတ္တူကူးပါတယ်။ HDFStore မှာ သိမ်းထားတဲ့ ဒေတာကို တခြားဖိုင်တစ်ခုထဲ ကူးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.copy([deep])pandas.DataFrame.corrmethodဂဏန်းဒေတာတွေကြား correlation coefficient တွက်ပေးပါတယ်။ DataFrame မှာ column တစ်ခုစီနဲ့ တခြား column တွေကြား ဆက်နွှယ်မှုကို ဇယားနဲ့ ပြန်ရနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.corr([method, min_periods, ...])-
တခြား object ရဲ့ ကိုက်ညီတဲ့ row သို့မဟုတ် column တွေနဲ့ correlation တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.corrwith(other[, axis, drop, ...]) pandas.DataFrame.countmethodရွေးထားတဲ့ axis၊ အုပ်စု သို့မဟုတ် window ထဲမှာ တန်ဖိုးရှိတဲ့ entry တွေကို ရေတွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.count([axis, numeric_only])pandas.DataFrame.covmethodကိုက်ညီရာ တန်ဖိုးစုံတွဲတွေကို သုံးပြီး ဂဏန်းဒေတာနှစ်ခု အတူတကွ ပြောင်းလဲပုံ (covariance) ကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.cov([min_periods, ddof, numeric_only])pandas.DataFrame.cummaxmethodနေရာတစ်ခုစီအထိ တွေ့ထားသမျှထဲက အကြီးဆုံးတန်ဖိုးကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.cummax([axis, skipna, numeric_only])pandas.DataFrame.cumminmethodနေရာတစ်ခုစီအထိ တွေ့ထားသမျှထဲက အငယ်ဆုံးတန်ဖိုးကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.cummin([axis, skipna, numeric_only])pandas.DataFrame.cumprodmethodတန်ဖိုးတွေကို အစဉ်လိုက် ဆက်မြှောက်ပြီး နေရာတစ်ခုစီအထိ ရထားတဲ့ မြှောက်လဒ်ကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.cumprod([axis, skipna, numeric_only])pandas.DataFrame.cumsummethodတန်ဖိုးတွေကို အစဉ်လိုက် ဆက်ပေါင်းပြီး နေရာတစ်ခုစီအထိ ရထားတဲ့ စုစုပေါင်းကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.cumsum([axis, skipna, numeric_only])-
Count၊ mean၊ quartile စတဲ့ summary statistics တွေကို တွက်ပေးပါတယ်။ ပါဝင်မယ့် အချက်တွေက column dtype ပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.describe([percentiles, include, ...])နမူနာ
orders[["units"]].describe() pandas.DataFrame.diffmethodလက်ရှိတန်ဖိုးထဲက ရှေ့ကတန်ဖိုးကို နုတ်ပါတယ်။ ဘယ်နှနေရာ အကွာကတန်ဖိုးနဲ့ တွက်မလဲဆိုတာ periods နဲ့ ပြောင်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.diff([periods, axis])pandas.DataFrame.divmethodကိုက်ညီတဲ့တန်ဖိုးတွေကို စားပြီး ဒဿမအပိုင်းပါ ရလဒ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.div(other[, axis, level, fill_value])pandas.DataFrame.dotmethodDot product သို့မဟုတ် matrix multiplication တွက်ပါတယ်။ သက်ဆိုင်ရာ label တွေ တူတာချင်း တွဲပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.dot(other)pandas.DataFrame.dropmethodပေးလိုက်တဲ့ label နဲ့ ကိုက်ညီတဲ့ row သို့မဟုတ် column ကို ဖယ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.drop([labels, axis, index, ...])နမူနာ
orders.drop(columns="day")-
ထပ်နေတဲ့ row တွေကို ဖယ်ပေးပါတယ်။ ဘယ် column တွေ အပေါ်မူတည်ပြီး တူမတူ စစ်မလဲဆိုတာ subset နဲ့ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.drop_duplicates([subset, keep, ...])နမူနာ
orders.drop_duplicates(subset=["team"]) -
အဆင့်ဆင့်ဖွဲ့ထားတဲ့ index ထဲက level တစ်ခု သို့မဟုတ် အများကြီးကို ဖယ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.droplevel(level[, axis]) pandas.DataFrame.dropnamethodတန်ဖိုးပျောက်နေတဲ့ row သို့မဟုတ် column တွေကို ဖယ်ပါတယ်။ ဘယ်နေရာတွေကို စစ်မလဲဆိုတာ subset နဲ့ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.dropna(*[, axis, how, thresh, ...])နမူနာ
orders.dropna(subset=["units"])pandas.DataFrame.dtypespropertyColumn တစ်ခုစီရဲ့ dtype ကို Series အဖြစ် ပေးပါတယ်။
နမူနာ
orders.dtypes-
ထပ်နေတဲ့ တန်ဖိုး ဒါမှမဟုတ် row တွေကို True/False နဲ့ မှတ်ပေးပါတယ်။ keep=False ဆို ထပ်နေတဲ့ အုပ်စုတိုင်းရဲ့ entry အားလုံးကို မှတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.duplicated([subset, keep])နမူနာ
orders.duplicated(subset=["team"]) pandas.DataFrame.emptypropertyAxis တစ်ခုခုမှာ အရေအတွက် သုညဖြစ်မဖြစ် စစ်ပါတယ်။ တန်ဖိုးအားလုံး ပျောက်နေပေမယ့် row နဲ့ column ရှိနိုင်ပါတယ်။
pandas.DataFrame.eqmethodသက်ဆိုင်တဲ့ label တွေကို ညှိပြီး ကိုက်ညီတဲ့ တန်ဖိုးတွေ တူမတူ နှိုင်းယှဉ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.eq(other[, axis, level])pandas.DataFrame.equalsmethodObject နှစ်ခုရဲ့ အရွယ်အစားနဲ့ တန်ဖိုးတွေ တူမတူ စစ်ပါတယ်။ နှစ်ခုလုံးမှာ တန်ဖိုးပျောက်တဲ့နေရာ တူရင် အဲဒီနေရာကို တူတယ်လို့ ယူပါတယ်။
ခေါ်သုံးပုံ
DataFrame.equals(other)pandas.DataFrame.evalmethodVariable သို့မဟုတ် ဇယား column တွေနဲ့ ရေးထားတဲ့ ယုံကြည်ရတဲ့ expression ကို တွက်ပေးပါတယ်။ DataFrame မှာ column အမည်တွေကို expression ထဲ သုံးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.eval(expr, *[, inplace])pandas.DataFrame.ewmmethodနောက်ဆုံးရတဲ့ တန်ဖိုးတွေကို ပိုအလေးပေးပြီး တွက်နိုင်ဖို့ exponentially weighted window တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.ewm([com, span, halflife, alpha, ...])-
အစကနေ လက်ရှိနေရာအထိ ပါဝင်တဲ့ window ကို တစ်နေရာချင်း တိုးချဲ့ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.expanding([min_periods, method]) pandas.DataFrame.explodemethodList ပုံစံတန်ဖိုးတွေကို row တစ်ခုစီအဖြစ် ဖြန့်ထုတ်ပါတယ်။ လိုအပ်တဲ့နေရာမှာ မူလ row label ကို ထပ်သုံးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.explode(column[, ignore_index])pandas.DataFrame.ffillmethodပျောက်နေတဲ့နေရာကို ရွေးထားတဲ့ ဦးတည်ချက်မှာ အရင်ဆုံးတွေ့ထားတဲ့ နောက်ဆုံးတန်ဖိုးနဲ့ ဖြည့်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.ffill(*[, axis, inplace, limit, ...])pandas.DataFrame.fillnamethodMissing value တွေကို ပေးထားတဲ့ value နဲ့ ဖြည့်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.fillna(value, *[, axis, inplace, ...])နမူနာ
orders.fillna({"units": 0})pandas.DataFrame.filtermethodDataFrame သို့မဟုတ် Series မှာ label နဲ့ ရွေးပါတယ်။ GroupBy မှာတော့ စစ်ဆေးတဲ့ function က True ပြန်ပေးတဲ့ အုပ်စုတွေကို ရွေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.filter([arg, like, regex, axis, ...])နမူနာ
orders.filter(items=["team", "units"])-
အသုံးပြုလို့ရတဲ့ တန်ဖိုး ပထမဆုံးရှိတဲ့ index label ကို ရှာပါတယ်။
ခေါ်သုံးပုံ
DataFrame.first_valid_index() -
ကိုက်ညီတဲ့ တန်ဖိုးတွေကို စားပြီး ရလဒ်ကို အောက်ဘက်အနီးဆုံး ကိန်းပြည့်ဆီ ချပါတယ်။
ခေါ်သုံးပုံ
DataFrame.floordiv(other[, axis, level, ...]) -
Arrow interface ကနေ ထုတ်ပေးတဲ့ ဒေတာကို pandas object အဖြစ် တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.from_arrow(data) -
Column သို့မဟုတ် row အလိုက် စုထားတဲ့ mapping ကနေ DataFrame တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.from_dict(data[, orient, dtype, ...]) -
Record ပုံစံ row တွေ ဒါမှမဟုတ် structured array ကနေ DataFrame တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.from_records(data[, index, ...]) pandas.DataFrame.gemethodကိုက်ညီတဲ့ တန်ဖိုးတွေကို ကြီးသည် သို့မဟုတ် ညီသည် စည်းမျဉ်းနဲ့ နှိုင်းယှဉ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.ge(other[, axis, level])pandas.DataFrame.getmethodKey နဲ့ object တစ်ခုကို ယူပါတယ်။ Series သို့မဟုတ် DataFrame မှာ key မတွေ့ရင် သတ်မှတ်ထားတဲ့ ပုံမှန်တန်ဖိုးကို ပြန်ပေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.get(key[, default])pandas.DataFrame.groupbymethodTeam အမည်လို key တစ်ခုအလိုက် row တွေကို အုပ်စုခွဲပါတယ်။ ပြီးရင် အုပ်စုတစ်ခုစီရဲ့ စုစုပေါင်း၊ ပျမ်းမျှ စတာတွေကို တွက်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.groupby([by, level, as_index, ...])နမူနာ
orders.groupby("team", dropna=False)["units"].sum(min_count=1)pandas.DataFrame.gtmethodကိုက်ညီတဲ့ တန်ဖိုးတွေ ဘယ်ဟာပိုကြီးလဲ နှိုင်းယှဉ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.gt(other[, axis, level])pandas.DataFrame.headmethodရှေ့ဆုံး row n ခုကို ပြန်ပေးပါတယ်။ n မပေးရင် ၅ ခု ပြပါတယ်။
ခေါ်သုံးပုံ
DataFrame.head([n])နမူနာ
orders.head(2)pandas.DataFrame.histmethodဂဏန်းတန်ဖိုးတွေ ဘယ်အပိုင်းအခြားမှာ ဘယ်လောက်ရှိလဲ မြင်ရဖို့ histogram ဆွဲပါတယ်။
ခေါ်သုံးပုံ
DataFrame.hist([column, by, grid, ...])pandas.DataFrame.iatpropertyRow နဲ့ column ရဲ့ ကိန်းပြည့် နေရာနံပါတ်တွေကို သုံးပြီး cell တစ်ခု ဖတ်နိုင်၊ ပြင်နိုင်ပါတယ်။
pandas.DataFrame.idxmaxmethodရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲမှာ အကြီးဆုံးတန်ဖိုးကို ပထမဆုံးတွေ့ရတဲ့ label ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.idxmax([axis, skipna, numeric_only])pandas.DataFrame.idxminmethodရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲမှာ အငယ်ဆုံးတန်ဖိုးကို ပထမဆုံးတွေ့ရတဲ့ label ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.idxmin([axis, skipna, numeric_only])pandas.DataFrame.ilocpropertyRow နဲ့ column ကို သုညကနေ စတဲ့ integer position နဲ့ ရွေးပါတယ်။
နမူနာ
orders.iloc[:2, :2]pandas.DataFrame.indexattributeRow label တွေပါတဲ့ Index ကို ပြန်ပေးပါတယ်။
-
object dtype ထဲက တန်ဖိုးတွေအတွက် ပိုသင့်တော်တဲ့ dtype ဖြစ်နိုင်မလား စစ်ပါတယ်။ ဂဏန်းပုံစံရေးထားတဲ့ စာသားတွေကို ဂဏန်းအဖြစ် အတင်းမပြောင်းပါ။
ခေါ်သုံးပုံ
DataFrame.infer_objects([copy]) pandas.DataFrame.infomethodDataFrame ထဲမှာ ဘယ် column တွေရှိလဲ၊ column တစ်ခုစီရဲ့ dtype က ဘာလဲ၊ တန်ဖိုးရှိတဲ့ row ဘယ်နှခုရှိလဲဆိုတာ အကျဉ်းချုပ် ကြည့်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.info([verbose, buf, max_cols, ...])နမူနာ
orders.info()pandas.DataFrame.insertmethodရှိပြီးသား DataFrame ရဲ့ သတ်မှတ်ထားတဲ့နေရာမှာ column အသစ် ထည့်ပေးပါတယ်။ ပုံမှန်အားဖြင့် အမည်တူ column ရှိပြီးသားဆို ValueError ဖြစ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.insert(loc, column, value[, ...])-
နီးစပ်ရာမှာ ရှိတဲ့တန်ဖိုးတွေကို သုံးပြီး ပျောက်နေတဲ့တန်ဖိုးကို ရွေးထားတဲ့ interpolation နည်းနဲ့ ခန့်မှန်းဖြည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.interpolate([method, axis, limit, ...]) -
DataFrame ရဲ့ column တစ်ခုကို နေရာနံပါတ်နဲ့ ရွေးပြီး တန်ဖိုး သတ်မှတ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.isetitem(loc, value) pandas.DataFrame.isinmethodတန်ဖိုးတစ်ခုစီက ပေးထားတဲ့ အစုထဲမှာ ပါမပါ စစ်ပြီး True သို့မဟုတ် False ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.isin(values)pandas.DataFrame.isnamethodတန်ဖိုး ပျောက်နေသလား စစ်ပါတယ်။ တန်ဖိုးတစ်ခုကို ပေးရင် True/False တစ်ခု၊ array ပုံစံ ပေးရင် နေရာတစ်ခုစီအတွက် True/False တွေ ပြန်ရပါတယ်။
ခေါ်သုံးပုံ
DataFrame.isna()နမူနာ
orders.isna()pandas.DataFrame.isnullmethodisna နဲ့ တူပြီး ဘယ်နေရာတွေမှာ တန်ဖိုးပျောက်လဲ စစ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.isnull()pandas.DataFrame.itemsmethodLabel နဲ့ တန်ဖိုးကို အတွဲလိုက် ထုတ်ပေးပါတယ်။ DataFrame မှာ column label နဲ့ သက်ဆိုင်ရာ Series ကို တွဲပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.items()-
DataFrame ရဲ့ row တွေကို index နဲ့ Series အတွဲအဖြစ် လည်ပတ်ယူနိုင်ပါတယ်။ ထွက်လာတဲ့ row မှာ တန်ဖိုးတွေကို dtype တစ်မျိုးတည်း ဖြစ်အောင် ပြောင်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.iterrows() -
DataFrame ရဲ့ row တွေကို tuple အဖြစ် တစ်ခုချင်း ယူနိုင်ပါတယ်။ Index ကိုပါ ထည့်ယူနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.itertuples([index, name]) pandas.DataFrame.joinmethodIndex label သို့မဟုတ် ခေါ်တဲ့ ဇယားမှာ ရွေးထားတဲ့ key အလိုက် ဇယားတွေကို ဆက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.join(other[, on, how, lsuffix, ...])pandas.DataFrame.keysmethodDataFrame ရဲ့ column label တွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.keys()pandas.DataFrame.kurtmethodဒေတာဖြန့်ကျက်ပုံမှာ အစွန်းဘက်တန်ဖိုးတွေ ဘယ်လောက်များလဲ သိနိုင်တဲ့ excess kurtosis ကို ခန့်မှန်းပါတယ်။
ခေါ်သုံးပုံ
DataFrame.kurt(*[, axis, skipna, numeric_only])-
kurt နဲ့ တူတဲ့ excess kurtosis တွက်ချက်မှုကို သုံးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.kurtosis(*[, axis, skipna, ...]) -
အသုံးပြုလို့ရတဲ့ တန်ဖိုး နောက်ဆုံးရှိတဲ့ index label ကို ရှာပါတယ်။
ခေါ်သုံးပုံ
DataFrame.last_valid_index() pandas.DataFrame.lemethodကိုက်ညီတဲ့ တန်ဖိုးတွေကို ငယ်သည် သို့မဟုတ် ညီသည် စည်းမျဉ်းနဲ့ နှိုင်းယှဉ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.le(other[, axis, level])pandas.DataFrame.locpropertyRow နဲ့ column ကို label သို့မဟုတ် boolean mask နဲ့ ရွေးပါတယ်။
နမူနာ
orders.loc[orders["team"].eq("North"), ["team", "units"]]pandas.DataFrame.ltmethodကိုက်ညီတဲ့ တန်ဖိုးတွေ ဘယ်ဟာပိုငယ်လဲ နှိုင်းယှဉ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.lt(other[, axis, level])pandas.DataFrame.mapmethodCell တစ်ခုစီရဲ့ တန်ဖိုးကို function ပေးထားတဲ့ တန်ဖိုးအသစ်နဲ့ ပြောင်းပါတယ်။ na_action="ignore" ဆို တန်ဖိုးပျောက်နေတဲ့ cell တွေကို ကျော်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.map(func[, na_action])pandas.DataFrame.maskmethodသတ်မှတ်ထားတဲ့ condition က True ဖြစ်တဲ့နေရာမှာ တန်ဖိုး အစားထိုးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.mask(cond[, other, inplace, axis, ...])pandas.DataFrame.maxmethodရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အကြီးဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
DataFrame.max(*[, axis, skipna, numeric_only])pandas.DataFrame.meanmethodရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေရဲ့ ပျမ်းမျှကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.mean(*[, axis, skipna, numeric_only])pandas.DataFrame.medianmethodတန်ဖိုးတွေကို စီလိုက်ရင် အလယ်မှာရှိတဲ့ တန်ဖိုးကို ယူပါတယ်။ အလယ်မှာ နှစ်ခုရှိရင် နှစ်ခုရဲ့ ပျမ်းမျှကို ယူပါတယ်။
ခေါ်သုံးပုံ
DataFrame.median(*[, axis, skipna, numeric_only])pandas.DataFrame.meltmethodIdentifier column တွေကို ဆက်ထားပြီး တိုင်းတာထားတဲ့ column တွေကို variable နဲ့ value ပါတဲ့ row တွေအဖြစ် ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
DataFrame.melt([id_vars, value_vars, ...])-
pandas က သိမ်းထားတဲ့ ဒေတာအတွက် memory byte အရေအတွက် ပြပေးပါတယ်။ object dtype အတွက် deep=True ပေးရင် အတွင်းက object တွေ သုံးတဲ့ memory ကိုပါ ပိုအသေးစိတ် ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.memory_usage([index, deep]) pandas.DataFrame.mergemethodဒီ DataFrame ကို တခြား table နဲ့ key အလိုက် ချိတ်ပါတယ်။ on နဲ့ key၊ how နဲ့ join ပုံစံ ရွေးပါ။
ခေါ်သုံးပုံ
DataFrame.merge(right[, how, on, left_on, ...])နမူနာ
orders.merge(teams, on="team", how="left", validate="many_to_one")pandas.DataFrame.minmethodရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အငယ်ဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
DataFrame.min(*[, axis, skipna, numeric_only])pandas.DataFrame.modmethodတန်ဖိုးစုံတွဲ တစ်တွဲစီအတွက် စားကြွင်းကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.mod(other[, axis, level, fill_value])pandas.DataFrame.modemethodအကြိမ်အများဆုံး တွေ့ရတဲ့ တန်ဖိုးကို ရှာပါတယ်။ အကြိမ်ရေတူရင် တန်ဖိုးအများကြီး ပြန်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.mode([axis, numeric_only, dropna])pandas.DataFrame.mulmethodသက်ဆိုင်တဲ့ label တွေကို ညှိပြီး ကိုက်ညီတဲ့ တန်ဖိုးတွေကို မြှောက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.mul(other[, axis, level, fill_value])pandas.DataFrame.ndimpropertyDataFrame ရဲ့ axis အရေအတွက်ကို ပြန်ပေးပါတယ်။ DataFrame မှာ အမြဲတမ်း နှစ်ခုရှိပါတယ်။
pandas.DataFrame.nemethodကိုက်ညီတဲ့ တန်ဖိုးတွေ မတူမတူ စစ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.ne(other[, axis, level])-
အကြီးဆုံး တန်ဖိုး n ခုကို ယူပါတယ်။
ခေါ်သုံးပုံ
DataFrame.nlargest(n, columns[, keep])နမူနာ
orders.nlargest(2, "units") pandas.DataFrame.notnamethodisna ရဲ့ True နဲ့ False ကို ပြောင်းပြန်ယူပြီး တန်ဖိုးရှိတဲ့နေရာတွေကို ရှာပါတယ်။
ခေါ်သုံးပုံ
DataFrame.notna()pandas.DataFrame.notnullmethodnotna နဲ့ တူပြီး တန်ဖိုးရှိတဲ့နေရာတွေကို ရှာပါတယ်။
ခေါ်သုံးပုံ
DataFrame.notnull()-
အငယ်ဆုံး တန်ဖိုး n ခုကို ယူပါတယ်။
ခေါ်သုံးပုံ
DataFrame.nsmallest(n, columns[, keep]) pandas.DataFrame.nuniquemethodမထပ်တဲ့ တန်ဖိုး ဘယ်နှမျိုးရှိလဲ ရေတွက်ပါတယ်။ လက်ခံတဲ့နေရာမှာ dropna=False ပေးရင် တန်ဖိုးပျောက်တာကိုလည်း တစ်မျိုးအဖြစ် ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.nunique([axis, dropna])နမူနာ
orders.nunique(dropna=False)-
အရင်တန်ဖိုးနဲ့ ယှဉ်ပြီး ဘယ်အချိုး ပြောင်းလဲသလဲ တွက်ပါတယ်။ ရာခိုင်နှုန်းလိုရင် ရလဒ်ကို 100 နဲ့ မြှောက်ပါ။
ခေါ်သုံးပုံ
DataFrame.pct_change([periods, fill_method, ...]) pandas.DataFrame.pipemethodMethod chain ကို မဖြတ်ဘဲ လက်ရှိ object ကို function တစ်ခုဆီ ပေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.pipe(func, *args, **kwargs)နမူနာ
orders.pipe(lambda frame: frame.dropna(subset=["units"]))pandas.DataFrame.pivotmethodမထပ်တဲ့တန်ဖိုးတွေကို column အသစ်တွေအဖြစ် ပြောင်းပေးပါတယ်။ ရလဒ် row နဲ့ column တစ်တွဲစီမှာ မူလတန်ဖိုး တစ်ခုစီသာ ရှိရပါမယ်။
ခေါ်သုံးပုံ
DataFrame.pivot(*, columns[, index, values])-
Row နဲ့ column အလိုက် အုပ်စုခွဲပြီး အနှစ်ချုပ်ဇယား ထုတ်ပေးပါတယ်။ ပေါင်းစပ်ပုံတူတဲ့ တန်ဖိုးတွေကို ဘယ်လိုစုတွက်မလဲဆိုတာ aggfunc နဲ့ သတ်မှတ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.pivot_table([values, index, ...]) pandas.DataFrame.plotmethodရွေးထားတဲ့ plotting backend နဲ့ kind ကို သုံးပြီး chart ဆွဲပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.plot([x, y, kind, ax, ....])-
အစဉ်လိုက်ရှိတဲ့ တန်ဖိုးတွေရဲ့ ပမာဏကို မြင်သာစေဖို့ မျဉ်းအောက်က ဧရိယာကို အရောင်ဖြည့်ပြီး ပြပါတယ်။
ခေါ်သုံးပုံ
DataFrame.plot.area([x, y, stacked]) -
အမျိုးအစားအလိုက် တန်ဖိုးတွေကို နှိုင်းယှဉ်ဖို့ ဒေါင်လိုက် bar chart ဆွဲပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.plot.bar([x, y, color]) -
အလျားလိုက် bar chart ဆွဲပေးပါတယ်။ အမျိုးအစားအမည်တွေ ရှည်တဲ့အခါ ဖတ်ရလွယ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.plot.barh([x, y, color]) -
အလယ်ကိန်း (median)၊ quartile တွေနဲ့ ဒေတာပြန့်နှံ့မှုကို နှိုင်းယှဉ်ဖို့ box plot ဆွဲပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.plot.box([by]) -
ကိန်းဂဏန်းတန်ဖိုးတွေ ဘယ်နေရာမှာ စုနေလဲ ခန့်မှန်းပြီး ချောမွေ့တဲ့ မျဉ်းနဲ့ ပြပါတယ်။
ခေါ်သုံးပုံ
DataFrame.plot.density([bw_method, ind, weights]) -
x နဲ့ y တန်ဖိုးအတွဲတွေကို ခြောက်ထောင့်ကွက်အလိုက် ရေတွက်တာ ဒါမှမဟုတ် စုတွက်တာ လုပ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.plot.hexbin(x, y[, C, ...]) -
ဂဏန်းတန်ဖိုးတွေ ဘယ်အပိုင်းအခြားမှာ ဘယ်လောက်ရှိလဲ မြင်ရဖို့ histogram ဆွဲပါတယ်။
ခေါ်သုံးပုံ
DataFrame.plot.hist([by, bins]) -
ကိန်းဂဏန်းဒေတာရဲ့ ပြန့်နှံ့ပုံကို ခန့်မှန်းတဲ့ kernel density plot ဆွဲပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.plot.kde([bw_method, ind, weights]) -
ဒေတာအမှတ်တွေကို လက်ရှိအစဉ်အတိုင်း မျဉ်းနဲ့ ဆက်ပြီး ပြပါတယ်။
ခေါ်သုံးပုံ
DataFrame.plot.line([x, y, color]) -
အမျိုးအစားတစ်ခုစီရဲ့ တန်ဖိုးအချိုးအစားအလိုက် အပိုင်းတွေ ခွဲပြတဲ့ pie chart ဆွဲပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.plot.pie([y]) -
တန်ဖိုးနှစ်ခုစီကို အစက်တစ်စက်နဲ့ ပြပြီး အဲဒီတန်ဖိုးနှစ်မျိုး ဘယ်လို ဆက်စပ်နေလဲ ကြည့်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.plot.scatter(x, y[, s, c]) pandas.DataFrame.popmethodLabel နဲ့ ရွေးထားတဲ့ entry ကို ဖယ်ပြီး ဖယ်လိုက်တဲ့ တန်ဖိုးကို ပြန်ပေးပါတယ်။ DataFrame မှာ ဖယ်လိုက်တဲ့ column ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.pop(item)pandas.DataFrame.powmethodတန်ဖိုးတစ်ခုစီကို သက်ဆိုင်ရာ ထပ်ညွှန်းကိန်းနဲ့ ထပ်တင်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.pow(other[, axis, level, fill_value])pandas.DataFrame.prodmethodရွေးထားတဲ့ axis၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေကို မြှောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.prod(*[, axis, skipna, ...])pandas.DataFrame.productmethodprod နဲ့ တန်ဖိုးတွေကို မြှောက်ပြီး မြှောက်လဒ် ထုတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.product(*[, axis, skipna, ...])-
တန်ဖိုးတွေကို အစဉ်လိုက်စီလိုက်တဲ့အခါ သတ်မှတ်ထားတဲ့ အချိုးနေရာမှာ ရှိမယ့်တန်ဖိုး (quantile) ကို ခန့်မှန်းပါတယ်။
ခေါ်သုံးပုံ
DataFrame.quantile([q, axis, numeric_only, ...]) pandas.DataFrame.querymethodColumn သို့မဟုတ် index ကို အခြေခံတဲ့ expression နဲ့ DataFrame row တွေကို စစ်ထုတ်ပါတယ်။ Local variable ကို ရည်ညွှန်းဖို့ @name ပုံစံ သုံးပါ။
ခေါ်သုံးပုံ
DataFrame.query(expr, *[, parser, engine, ...])နမူနာ
orders.query("units >= 5")pandas.DataFrame.raddmethodထည့်လိုက်တဲ့ တန်ဖိုးကို ပေါင်းခြင်းရဲ့ ဘယ်ဘက်မှာ ထားပြီး မူလတန်ဖိုးနဲ့ ပေါင်းပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.radd(other[, axis, level, fill_value])pandas.DataFrame.rankmethodတန်ဖိုးတွေကို အစဉ်လိုက် နံပါတ်ပေးပြီး တန်ဖိုးတူတဲ့အခါ ဘယ်လိုအဆင့် သတ်မှတ်မလဲ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.rank([axis, method, numeric_only, ...])pandas.DataFrame.rdivmethodထည့်လိုက်တဲ့ တန်ဖိုးကို မူလတန်ဖိုးတစ်ခုစီနဲ့ စားပြီး ဒဿမ ထည့်တွက်တဲ့ စားလဒ်ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.rdiv(other[, axis, level, fill_value])pandas.DataFrame.reindexmethodသတ်မှတ်လိုက်တဲ့ label တွေအတိုင်း ဒေတာကို ပြန်စီပြီး မူလမှာမရှိတဲ့ label နေရာတွေကို ဖြည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.reindex([labels, index, columns, ...])-
အခြား pandas object ရဲ့ label တွေအတိုင်း ဒေတာကို ပြန်ညှိပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.reindex_like(other[, method, ...]) pandas.DataFrame.renamemethodRow သို့မဟုတ် column label တွေကို ပြောင်းပါတယ်။ Column အမည် ပြောင်းဖို့ columns နဲ့ dictionary ပေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.rename([mapper, index, columns, ...])နမူနာ
orders.rename(columns={"units": "quantity"})-
Axis ရဲ့ အမည်ကို ပြောင်းပါတယ်။ အဲဒီ axis ပေါ်က label တွေကို မူလအတိုင်း ထားပါတယ်။
ခေါ်သုံးပုံ
DataFrame.rename_axis([mapper, index, ...]) -
MultiIndex ထဲက index level တွေရဲ့ အစဉ်ကို ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.reorder_levels(order[, axis]) pandas.DataFrame.replacemethodသတ်မှတ်ထားတဲ့ value သို့မဟုတ် pattern ကို value အသစ်နဲ့ အစားထိုးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.replace([to_replace, value, ...])နမူနာ
orders.replace({"team": {"North": "N"}})-
Datetime axis ကို အချိန်ပိုင်းတွေ ခွဲပြီး အပိုင်းတစ်ခုစီမှာ စုတွက်တာ၊ ဖြည့်တာ သို့မဟုတ် အချိန်ပိုစိပ်အောင် ပြောင်းတာ လုပ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.resample(rule[, closed, label, ...]) -
Index ကို ပုံမှန် 0၊ 1၊ 2 အစဉ် ပြန်ထားပါတယ်။ Index အဟောင်းကို column အဖြစ် မထည့်ချင်ရင် drop=True သုံးပါ။
ခေါ်သုံးပုံ
DataFrame.reset_index([level, drop, ...])နမူနာ
orders.set_index("team").reset_index() -
ထည့်လိုက်တဲ့ တန်ဖိုးကို စားတည်ကိန်းအဖြစ် သုံးပြီး floor division နဲ့ စားလဒ် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.rfloordiv(other[, axis, level, ...]) pandas.DataFrame.rmodmethodထည့်လိုက်တဲ့ တန်ဖိုးကို မူလတန်ဖိုးတစ်ခုစီနဲ့ စားတဲ့အခါ ရတဲ့ အကြွင်းကို တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.rmod(other[, axis, level, fill_value])pandas.DataFrame.rmulmethodထည့်လိုက်တဲ့ တန်ဖိုးကို မြှောက်ခြင်းရဲ့ ဘယ်ဘက်မှာ ထားပြီး မူလတန်ဖိုးနဲ့ မြှောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.rmul(other[, axis, level, fill_value])pandas.DataFrame.rollingmethodတန်ဖိုးအရေအတွက်၊ အချိန်အပိုင်းအခြား သို့မဟုတ် ကိုယ်ပိုင် indexer နဲ့ သတ်မှတ်ထားတဲ့ ရွေ့လျား window တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.rolling(window[, min_periods, ...])pandas.DataFrame.roundmethodကိန်းဂဏန်းကို သတ်မှတ်ထားတဲ့ ဒဿမနေရာအတိုင်း round လုပ်ပေးပါတယ်။ ရက်စွဲနဲ့ အချိန်တန်ဖိုးတွေအတွက် frequency သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.round([decimals])pandas.DataFrame.rpowmethodထည့်လိုက်တဲ့ တန်ဖိုးတွေကို အခြေကိန်း၊ မူလတန်ဖိုးတွေကို ထပ်ညွှန်းကိန်းအဖြစ် သုံးပြီး ထပ်တင်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.rpow(other[, axis, level, fill_value])pandas.DataFrame.rsubmethodထည့်လိုက်တဲ့ တန်ဖိုးထဲက မူလတန်ဖိုးတစ်ခုစီကို နုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.rsub(other[, axis, level, fill_value])-
ထည့်လိုက်တဲ့ တန်ဖိုးကို စားတည်ကိန်းအဖြစ် သုံးပြီး ဒဿမ ထည့်တွက်တဲ့ စားလဒ် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.rtruediv(other[, axis, level, ...]) pandas.DataFrame.samplemethodRow၊ entry သို့မဟုတ် column တွေကို ကျပန်းရွေးပါတယ်။ ထပ်စမ်းတိုင်း တူတဲ့ရလဒ်လိုရင် random_state ပေးပါ။
ခေါ်သုံးပုံ
DataFrame.sample([n, frac, replace, ...])နမူနာ
orders.sample(n=2, random_state=7)pandas.DataFrame.selectmethodရွေးထားတဲ့ column တွေနဲ့ expression သို့မဟုတ် အမည်နဲ့ထည့်တဲ့ function ကနေ တွက်ထုတ်ထားတဲ့ column တွေကို ပေါင်းပြီး DataFrame တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.select(*args, **kwargs)-
Data type အလိုက် ထည့်ထားမယ့် သို့မဟုတ် ဖယ်ထားမယ့် column တွေကို ရွေးပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.select_dtypes([include, exclude])နမူနာ
orders.select_dtypes(include="number") pandas.DataFrame.semmethodရွေးထားတဲ့ ဒေတာအတွက် ပျမ်းမျှရဲ့ standard error ကို တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.sem(*[, axis, skipna, ddof, ...])-
Axis တစ်ခုမှာရှိတဲ့ label အားလုံးကို အရေအတွက်တူတဲ့ label အသစ်တွေနဲ့ အစားထိုးပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.set_axis(labels, *[, axis, copy]) -
Flag ပြောင်းထားတဲ့ object ကို ပြန်ပေးပါတယ်။ ဥပမာ label ထပ်နေတာကို လက်ခံမလား သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.set_flags(*[, copy, ...]) -
Column တစ်ခု ဒါမှမဟုတ် အများကြီးကို row index အဖြစ် ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
DataFrame.set_index(keys, *[, drop, append, ...])နမူနာ
orders.set_index("day") pandas.DataFrame.shapepropertyRow အရေအတွက်နဲ့ column အရေအတွက်ကို tuple အဖြစ် ပေးပါတယ်။
နမူနာ
orders.shapepandas.DataFrame.shiftmethodတန်ဖိုးတွေကို သတ်မှတ်ထားတဲ့ နေရာအရေအတွက်အတိုင်း ရွှေ့ပါတယ်။ အချိန် frequency ပေးရင် label တွေကို ရွှေ့ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.shift([periods, freq, axis, ...])pandas.DataFrame.sizepropertyတန်ဖိုးပျောက်နေတဲ့ cell တွေ အပါအဝင် cell အရေအတွက်ကို ပြန်ပေးပါတယ်။
pandas.DataFrame.skewmethodဂဏန်းဒေတာ ဖြန့်ကျက်ပုံက ဘယ်လောက် မညီမျှလဲဆိုတာ skewness နဲ့ တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.skew(*[, axis, skipna, numeric_only])-
Row သို့မဟုတ် column တွေကို label အလိုက် စီပါတယ်။
ခေါ်သုံးပုံ
DataFrame.sort_index(*[, axis, level, ...])နမူနာ
orders.sort_index(ascending=False) -
Column တစ်ခု သို့မဟုတ် အများကြီးရဲ့ value အလိုက် row တွေ စီပါတယ်။
ခေါ်သုံးပုံ
DataFrame.sort_values(by, *[, axis, ...])နမူနာ
orders.sort_values("units", ascending=False, na_position="last") pandas.DataFrame.sparse.densityattribute-
SciPy sparse matrix ကနေ တန်ဖိုးတွေကို sparse ပုံစံနဲ့ သိမ်းတဲ့ pandas object တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.sparse.from_spmatrix(data[, ...]) -
pandas မှာ sparse ပုံစံနဲ့ သိမ်းထားတဲ့ ဒေတာကို SciPy coordinate format သို့ ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.sparse.to_coo() -
Sparse ပုံစံနဲ့ သိမ်းထားတဲ့ တန်ဖိုးတွေကို တစ်ခုစီ အပြည့်အစုံပါဝင်တဲ့ dense ပုံစံသို့ ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.sparse.to_dense() pandas.DataFrame.squeezemethodတန်ဖိုးတစ်ခုစီပဲရှိတဲ့ axis တွေကို ချုံ့ပြီး dimension ပိုနည်းတဲ့ object သို့မဟုတ် scalar ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.squeeze([axis])pandas.DataFrame.stackmethodColumn ရဲ့ level တွေကို row index ဘက်ကို ရွှေ့ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.stack([level, dropna, sort, ...])နမူနာ
orders.set_index("day")[["units"]].stack()pandas.DataFrame.stdmethodVariance ရဲ့ square root အဖြစ် standard deviation ကို တွက်ပါတယ်။ ဘယ် divisor သုံးမလဲဆိုတာ ddof နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.std(*[, axis, skipna, ddof, ...])pandas.DataFrame.stylepropertyသိမ်းထားတဲ့ ဒေတာအမျိုးအစားကို မပြောင်းဘဲ ဇယားကို ပြသပုံ သတ်မှတ်နိုင်တဲ့ Styler ကို ပြန်ပေးပါတယ်။
pandas.DataFrame.submethodလိုအပ်တဲ့အခါ label တွေကို အရင်ညှိပြီး သက်ဆိုင်ရာ တန်ဖိုးအတွဲတစ်ခုစီကို နုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.sub(other[, axis, level, fill_value])pandas.DataFrame.summethodAxis၊ အုပ်စု သို့မဟုတ် window တစ်ခုစီအတွင်း တန်ဖိုးတွေကို ပေါင်းပါတယ်။ အနည်းဆုံး တန်ဖိုးဘယ်နှခု ရှိရမလဲဆိုတာ လက်ခံတဲ့နေရာမှာ min_count နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.sum(*[, axis, skipna, ...])-
MultiIndex ထဲက level နှစ်ခုရဲ့ နေရာကို လဲပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.swaplevel([i, j, axis]) pandas.DataFrame.TpropertyRow နဲ့ column နေရာချင်း လဲထားတဲ့ ဇယားကို ပြန်ပေးပါတယ်။
pandas.DataFrame.tailmethodနောက်ဆုံး row n ခုကို ပြန်ပေးပါတယ်။ n မပေးရင် ၅ ခု ပြပါတယ်။
ခေါ်သုံးပုံ
DataFrame.tail([n])နမူနာ
orders.tail(2)pandas.DataFrame.takemethodပေးထားတဲ့ နေရာနံပါတ်တွေအတိုင်း တန်ဖိုးတွေကို ရွေးယူပါတယ်။
ခေါ်သုံးပုံ
DataFrame.take(indices[, axis])-
ဇယားရဲ့ စာသားပုံစံကို စက်ရဲ့ clipboard ထဲ ကူးပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_clipboard(*[, excel, sep]) pandas.DataFrame.to_csvmethodDataFrame ကို CSV ဖိုင်အဖြစ် ထုတ်ပါတယ်။ Index ကို output ထဲ မထည့်ချင်ရင် index=False သုံးပါ။
ခေါ်သုံးပုံ
DataFrame.to_csv([path_or_buf, sep, na_rep, ...])နမူနာ
orders.to_csv(index=False)pandas.DataFrame.to_dictmethodဒေတာကို Python mapping အဖြစ် ပြောင်းပေးပါတယ်။ DataFrame မှာ orient နဲ့ mapping ဖွဲ့စည်းပုံကို သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_dict([orient, into, index])-
ဒေတာကို Excel sheet ထဲ ရေးပေးပါတယ်။ Workbook တစ်ခုထဲမှာ sheet အများကြီး ရေးမယ်ဆို ExcelWriter သုံးပါ။
ခေါ်သုံးပုံ
DataFrame.to_excel(excel_writer, *[, ...]) -
ဇယားဒေတာကို column အလိုက် သိမ်းပေးတဲ့ Feather format နဲ့ ရေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_feather(path, **kwargs) pandas.DataFrame.to_hdfmethodpandas ဒေတာကို HDF5 store ထဲမှာ သတ်မှတ်ထားတဲ့ key အောက်မှာ သိမ်းပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_hdf(path_or_buf, *, key[, ...])pandas.DataFrame.to_htmlmethodဒေတာကို HTML ဇယားအဖြစ် ထုတ်ပေးပါတယ်။ Styler ရဲ့ output မှာ သတ်မှတ်ထားတဲ့ style တွေပါ ပါလာပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_html([buf, columns, col_space, ...])pandas.DataFrame.to_jsonmethodဒေတာကို JSON အဖြစ် ပြောင်းပေးပါတယ်။ ဖွဲ့စည်းပုံကို orient နဲ့ ရွေးနိုင်ပြီး record တစ်ခုစီကို တစ်ကြောင်းစီ ရေးဖို့ lines ကို သုံးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_json([path_or_buf, orient, ...])-
ဒေတာကို LaTeX ဇယားပုံစံနဲ့ ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_latex([buf, columns, header, ...]) -
ဇယားကို Markdown စာသားအဖြစ် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_markdown([buf, mode, index, ...]) -
တန်ဖိုးတွေကို NumPy array အဖြစ် ပြောင်းပေးပါတယ်။ Column တွေရဲ့ dtype မတူရင် အားလုံးနဲ့ ကိုက်ညီတဲ့ dtype တစ်ခုကို သုံးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_numpy([dtype, copy, na_value]) pandas.DataFrame.to_orcmethodDataFrame ကို column အလိုက် သိမ်းပေးတဲ့ ORC format နဲ့ ရေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_orc([path, engine, index, ...])-
DataFrame ကို Parquet format နဲ့ ရေးပါတယ်။ ဖိုင်ချုံ့ပုံကို compression နဲ့၊ ဒေတာခွဲသိမ်းမယ့် column တွေကို partition_cols နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_parquet([path, engine, ...]) -
DatetimeIndex သို့မဟုတ် ရွေးထားတဲ့ axis ကို သတ်မှတ်လိုက်တဲ့ frequency အတိုင်း PeriodIndex အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_period([freq, axis, copy]) -
နောက်မှ ပြန်ဖွင့်သုံးနိုင်ဖို့ Python object ကို pickle ဖိုင်အဖြစ် သိမ်းပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_pickle(path, *[, compression, ...]) -
အမည်ပေးထားတဲ့ field တွေပါတဲ့ NumPy record array ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_records([index, column_dtypes, ...]) pandas.DataFrame.to_sqlmethodဇယားဒေတာကို SQL table ထဲ ရေးပေးပါတယ်။ Table ရှိပြီးသားဆို ဘယ်လို ဆက်လုပ်မလဲ if_exists နဲ့ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_sql(name, con, *[, schema, ...])-
DataFrame ကို Stata data file အဖြစ် ရေးပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_stata(path, *[, convert_dates, ...]) -
ဖတ်ရှုလို့လွယ်တဲ့ စာသားအဖြစ် ပြန်ပေးပါတယ်။ Buffer ထည့်ပေးရင် အဲဒီထဲကို ရေးပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_string([buf, columns, ...]) -
ရွေးထားတဲ့ axis ရဲ့ PeriodIndex ကို အပိုင်းတစ်ခုစီရဲ့ အစ သို့မဟုတ် အဆုံးကို ကိုယ်စားပြုတဲ့ timestamp တွေအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_timestamp([freq, how, axis, copy]) -
Label ပါတဲ့ pandas ဒေတာကို ကိုက်ညီတဲ့ xarray object အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.to_xarray() -
ပေးထားတဲ့ operation ကို လုပ်ပြီး မူလဒေတာပုံစံနဲ့ ကိုက်တဲ့ ရလဒ်ထုတ်ပေးပါတယ်။ GroupBy မှာ ရလဒ်တွေကို မူလ row တွေနဲ့ ပြန်တွဲပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.transform(func[, axis]) -
နှစ်ဖက်မြင်ဒေတာမှာ row axis နဲ့ column axis ကို နေရာချင်း လဲပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.transpose(*args[, copy]) pandas.DataFrame.truedivmethodကိုက်ညီတဲ့ တန်ဖိုးတစ်တွဲစီကို စားပြီး ဒဿမ ထည့်တွက်တဲ့ စားလဒ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.truediv(other[, axis, level, ...])-
အစဉ်လိုက်စီပြီးသား axis မှာ သတ်မှတ်လိုက်တဲ့ အစနဲ့ အဆုံးကြားက label တွေကိုပဲ ထားပါတယ်။
ခေါ်သုံးပုံ
DataFrame.truncate([before, after, axis, copy]) -
တကယ့်အချိန်တစ်မှတ်တည်းကို ထိန်းထားပြီး အခြား timezone ရဲ့ နာရီအတိုင်း ပြောင်းပြပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.tz_convert(tz[, axis, level, copy]) -
Timezone မပါတဲ့ datetime တွေအတွက် timezone သတ်မှတ်ပေးပါတယ်။ Timezone ဖြုတ်တဲ့အခါ ဒေသနာရီပေါ်က အချိန်တန်ဖိုးအတိုင်း ထားပါတယ်။
ခေါ်သုံးပုံ
DataFrame.tz_localize(tz[, axis, level, ...]) pandas.DataFrame.unstackmethodRow index ရဲ့ level တစ်ဆင့်ကို column ဘက်ကို ရွှေ့ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.unstack([level, fill_value, sort])pandas.DataFrame.updatemethodအခြား object ထဲက တန်ဖိုးရှိတဲ့နေရာတွေကို label အလိုက် ညှိပြီး မူလ object ကို ပြင်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.update(other[, join, overwrite, ...])-
တန်ဖိုး သို့မဟုတ် row ပေါင်းစပ်ပုံ တစ်မျိုးစီ ဘယ်နှကြိမ်ပါလဲ ရေတွက်ပါတယ်။ အချိုးလိုရင် normalize၊ တန်ဖိုးပျောက်တာ ထည့်လိုရင် dropna=False သုံးပါ။
ခေါ်သုံးပုံ
DataFrame.value_counts([subset, normalize, ...]) pandas.DataFrame.valuespropertypandas.DataFrame.varmethodတန်ဖိုးတွေက ပျမ်းမျှနားမှာ ဘယ်လောက်ပြန့်နေသလဲဆိုတာ variance နဲ့ တွက်ပါတယ်။ တွက်ချက်မှုမှာ သုံးမယ့် divisor ကို ddof နဲ့ ထိန်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.var(*[, axis, skipna, ddof, ...])pandas.DataFrame.wheremethodသတ်မှတ်ချက် True ဖြစ်တဲ့ နေရာက တန်ဖိုးတွေကို ထားပြီး ကျန်တဲ့နေရာတွေကို ထည့်ပေးထားတဲ့တန်ဖိုးနဲ့ အစားထိုးပါတယ်။
ခေါ်သုံးပုံ
DataFrame.where(cond[, other, inplace, ...])pandas.DataFrame.xsmethodLabel တစ်ခုနဲ့ ကိုက်ညီတဲ့ ဒေတာအပိုင်းကို ရွေးပေးပါတယ်။ MultiIndex ရဲ့ level တစ်ဆင့်ကိုလည်း သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrame.xs(key[, axis, level, drop_level])pandas.Flagsclasspandas.MultiIndexclass
Series နှင့် Accessors (342)
pandas.DataFrame.sparseaccessorSparse ဒေတာနဲ့ သက်ဆိုင်တဲ့ method နဲ့ property တွေကို သုံးနိုင်တဲ့ accessor ကို ပေးပါတယ်။
pandas.Index.straccessorစာသားတန်ဖိုးတစ်ခုစီကို ပြောင်းလဲ၊ ရှာဖွေ၊ စစ်ဆေးနိုင်တဲ့ accessor ကို ပေးပါတယ်။
pandas.Seriesclasspandas.Series.__array__methodတန်ဖိုးတွေကို NumPy ရဲ့ array protocol ကတစ်ဆင့် သုံးနိုင်အောင် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.__array__([dtype, copy])pandas.Series.__invert__methodလက်ရှိ object မှာ ~ operator သုံးလို့ရအောင် လုပ်ပေးပါတယ်။ True/False mask မှာ True ကို False၊ False ကို True ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
Series.__invert__()pandas.Series.__iter__methodSeries ထဲက တန်ဖိုးတွေကို ရှိနေတဲ့ အစဉ်အတိုင်း တစ်ခုချင်း ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.__iter__()pandas.Series.absmethodဂဏန်းတန်ဖိုးတစ်ခုစီရဲ့ absolute value ကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
Series.abs()pandas.Series.addmethodကိုက်ညီတဲ့ တန်ဖိုးတွေကို ပေါင်းပါတယ်။ pandas object တွေမှာ label တူတာချင်း တွဲပြီး ပေါင်းပါတယ်။
ခေါ်သုံးပုံ
Series.add(other[, level, fill_value, axis])pandas.Series.add_prefixmethodရွေးထားတဲ့ axis ရဲ့ label တွေရှေ့မှာ စာသားထည့်ပါတယ်။
ခေါ်သုံးပုံ
Series.add_prefix(prefix[, axis])pandas.Series.add_suffixmethodရွေးထားတဲ့ axis ရဲ့ label တွေနောက်မှာ စာသားထည့်ပါတယ်။
ခေါ်သုံးပုံ
Series.add_suffix(suffix[, axis])pandas.Series.aggmethodပေးထားတဲ့ operation အမည် သို့မဟုတ် callable နဲ့ တန်ဖိုးတွေကို စုတွက်ပါတယ်။ ရလဒ်ပုံစံက သုံးတဲ့ operation နဲ့ ဒေတာပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
Series.agg([func, axis])pandas.Series.aggregatemethodagg နဲ့ ခေါ်သုံးပုံတူပြီး operation တစ်ခု သို့မဟုတ် အများကြီးနဲ့ တန်ဖိုးတွေ စုတွက်ပါတယ်။
ခေါ်သုံးပုံ
Series.aggregate([func, axis])pandas.Series.alignmethodLabel တွေ ကိုက်ညီအောင် object နှစ်ခုကို ညှိပေးပါတယ်။ ဘယ် label တွေ ထားမလဲဆိုတာ join နဲ့ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.align(other[, join, axis, level, ...])pandas.Series.allmethodရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲက တန်ဖိုးအားလုံး True ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
Series.all(*[, axis, bool_only, skipna])pandas.Series.anymethodရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲမှာ True ဖြစ်တဲ့ တန်ဖိုး အနည်းဆုံးတစ်ခု ပါမပါ စစ်ပါတယ်။
ခေါ်သုံးပုံ
Series.any(*[, axis, bool_only, skipna])pandas.Series.applymethodRow၊ column၊ အုပ်စု သို့မဟုတ် window တစ်ခုစီကို function ဆီ ပေးပြီး တွက်ပါတယ်။ ဘာကို function ဆီ ပေးမလဲဆိုတာ ခေါ်တဲ့ object အမျိုးအစားပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
Series.apply(func[, args, by_row])pandas.Series.argmaxmethodအကြီးဆုံးတန်ဖိုး ပထမဆုံးတွေ့ရတဲ့ နေရာနံပါတ်ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.argmax([axis, skipna])pandas.Series.argminmethodအသေးဆုံးတန်ဖိုး ပထမဆုံးတွေ့ရတဲ့ နေရာနံပါတ်ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.argmin([axis, skipna])pandas.Series.argsortmethodတန်ဖိုးတွေကို အစဉ်လိုက် စီဖို့ ယူရမယ့် နေရာနံပါတ်တွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.argsort([axis, kind, order, stable])pandas.Series.arraypropertypandas.Series.asfreqmethodဒေတာကို သတ်မှတ်ထားတဲ့ frequency နဲ့ ညှိပေးပါတယ်။ အချိန်ပိုင်းအလိုက် စုတွက်ဖို့ resample ကို သုံးပါ။
ခေါ်သုံးပုံ
Series.asfreq(freq[, method, how, ...])pandas.Series.asofmethodပေးထားတဲ့ label မတိုင်ခင် သို့မဟုတ် label နေရာမှာ ရှိတဲ့ နောက်ဆုံး အသုံးပြုလို့ရတဲ့ တန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Series.asof(where[, subset])pandas.Series.astypemethodဒေတာအမျိုးအစား (dtype) ပြောင်းပါတယ်။ DataFrame မှာ column တစ်ခုချင်းစီအတွက် မတူတဲ့ dtype ကို mapping နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.astype(dtype[, copy, errors])pandas.Series.atpropertyIndex label နဲ့ ရွေးထားတဲ့ Series တန်ဖိုးတစ်ခုကို ဖတ်နိုင်သလို ပြင်လို့လည်း ရပါတယ်။
pandas.Series.at_timemethodDatetime index ထဲမှာ သတ်မှတ်ထားတဲ့ နာရီအချိန်နဲ့ ကိုက်ညီတဲ့ row တွေကို ရွေးပါတယ်။
ခေါ်သုံးပုံ
Series.at_time(time[, asof, axis])pandas.Series.attrspropertypandas.Series.autocorrmethodSeries ကို သတ်မှတ်လိုက်တဲ့ အဆင့်အရေအတွက်အတိုင်း ရွှေ့ထားတဲ့ ကိုယ်ပိုင်တန်ဖိုးတွေနဲ့ correlation တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.autocorr([lag])pandas.Series.betweenmethodသတ်မှတ်ထားတဲ့ interval ထဲမှာ တန်ဖိုးတစ်ခုစီ ပါမပါကို True သို့မဟုတ် False နဲ့ ပြပါတယ်။ အစနဲ့ အဆုံးတန်ဖိုး ထည့်တွက်မတွက်ကို inclusive နဲ့ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.between(left, right[, inclusive])နမူနာ
orders["units"].between(4, 7, inclusive="both")-
ရက်စွဲကို သီးသန့်မစစ်ဘဲ နာရီအချိန် အပိုင်းအခြားတစ်ခုထဲ ပါတဲ့ row တွေကို ရွေးပါတယ်။
ခေါ်သုံးပုံ
Series.between_time(start_time, end_time[, ...]) pandas.Series.bfillmethodပျောက်နေတဲ့နေရာကို ရွေးထားတဲ့ဦးတည်ချက်မှာ နောက်ထပ်တွေ့တဲ့ တန်ဖိုးနဲ့ ဖြည့်ပါတယ်။
ခေါ်သုံးပုံ
Series.bfill(*[, axis, inplace, limit, ...])pandas.Series.case_whenmethodသတ်မှတ်ချက်နဲ့ အစားထိုးတန်ဖိုး အတွဲတွေကို အစဉ်လိုက် စစ်ပေးပါတယ်။ သတ်မှတ်ချက် အများကြီးနဲ့ ကိုက်ရင် ပထမဆုံး ကိုက်တဲ့အတွဲကို သုံးပါတယ်။
ခေါ်သုံးပုံ
Series.case_when(caselist)pandas.Series.cataccessorCategory ဒေတာနဲ့ အဲဒီဒေတာရဲ့ metadata ကို သုံးနိုင်တဲ့ accessor ကို ပြန်ပေးပါတယ်။
-
ရှိပြီးသား တန်ဖိုးတွေကို အတူတူထားပြီး လက်ခံမယ့် category စာရင်းမှာ အသစ်ထည့်ပါတယ်။
ခေါ်သုံးပုံ
Series.cat.add_categories(new_categories) -
Category တွေကို နှိုင်းယှဉ်တဲ့အခါ သတ်မှတ်ထားတဲ့ အစဉ် သုံးနိုင်အောင် ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
Series.cat.as_ordered() -
Category အမည်တွေကို အတူတူထားပြီး သတ်မှတ်ထားတဲ့ အစဉ်ကို ဖယ်ပါတယ်။
ခေါ်သုံးပုံ
Series.cat.as_unordered() pandas.Series.cat.categoriesattributeလက်ရှိဒေတာမှာ အသုံးမပြုထားတဲ့ category တွေပါ အပါအဝင် လက်ခံထားတဲ့ category label အားလုံးကို ပြန်ပေးပါတယ်။
pandas.Series.cat.codesattributeတန်ဖိုးတစ်ခုစီ category စာရင်းမှာ ရှိတဲ့ နေရာနံပါတ်ကို ပြန်ပေးပါတယ်။ Missing value အတွက် -1 ပြန်ပေးပါတယ်။
pandas.Series.cat.orderedattributeသတ်မှတ်ထားတဲ့ category အစဉ်ကို နှိုင်းယှဉ်ရာမှာ သုံးထားလား စစ်ပေးပါတယ်။
-
ရွေးထားတဲ့ category တွေကို ဖယ်ပြီး အဲဒီ category သုံးထားတဲ့ နေရာတွေကို ပျောက်နေတဲ့တန်ဖိုးအဖြစ် ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
Series.cat.remove_categories(removals) -
ဒေတာထဲမှာ အသုံးမပြုထားတဲ့ category တွေကို စာရင်းထဲက ဖယ်ပါတယ်။
ခေါ်သုံးပုံ
Series.cat.remove_unused_categories() -
တန်ဖိုးတစ်ခုစီရဲ့ category ကို အတူတူထားပြီး category အမည်တွေကို ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
Series.cat.rename_categories(new_categories) -
တန်ဖိုးတစ်ခုစီရဲ့ category ကို အတူတူထားပြီး category အစဉ်ကို ပြန်သတ်မှတ်ပါတယ်။
ခေါ်သုံးပုံ
Series.cat.reorder_categories(new_categories) -
လက်ခံမယ့် category စာရင်းကို ပြောင်းပါတယ်။ စာရင်းအသစ်ထဲ မပါတဲ့ တန်ဖိုးတွေက missing value ဖြစ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.cat.set_categories(new_categories[, ...]) pandas.Series.clipmethodသတ်မှတ်ထားတဲ့ အနိမ့်ဆုံးအောက် ရောက်တဲ့တန်ဖိုးကို အနိမ့်ဆုံးနဲ့ အစားထိုးပြီး အမြင့်ဆုံးထက် ကျော်တာကို အမြင့်ဆုံးနဲ့ အစားထိုးပါတယ်။ ကြားထဲကတန်ဖိုးတွေကို ဆက်ထားပါတယ်။
ခေါ်သုံးပုံ
Series.clip([lower, upper, axis, inplace])pandas.Series.combinemethodLabel အလိုက် ညှိထားတဲ့ object တွေကို function နဲ့ ပေါင်းစပ်ပါတယ်။ DataFrame က column တွေပေးပြီး Series က တန်ဖိုးတစ်ခုချင်းစီ ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.combine(other, func[, fill_value])-
ရှိပြီးသား တန်ဖိုးတွေကို ဆက်ထားပြီး ပျောက်နေတဲ့ တန်ဖိုးတွေကို တခြား object ထဲက label တူတဲ့တန်ဖိုးနဲ့ ဖြည့်ပါတယ်။
ခေါ်သုံးပုံ
Series.combine_first(other) pandas.Series.comparemethodLabel တူတဲ့ object နှစ်ခုကြား ကွာခြားတဲ့တန်ဖိုးတွေကို ဘေးချင်းကပ် ပြပါတယ်။
ခေါ်သုံးပုံ
Series.compare(other[, align_axis, ...])-
Nullable integer သို့မဟုတ် string လို ပျောက်နေတဲ့ တန်ဖိုးတွေကို လက်ခံတဲ့ dtype တွေ ဖြစ်နိုင်သလား ခန့်မှန်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.convert_dtypes([infer_objects, ...]) pandas.Series.copymethodလက်ရှိ object ကို မိတ္တူကူးပါတယ်။ HDFStore မှာ သိမ်းထားတဲ့ ဒေတာကို တခြားဖိုင်တစ်ခုထဲ ကူးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.copy([deep])pandas.Series.corrmethodဂဏန်းဒေတာတွေကြား correlation coefficient တွက်ပေးပါတယ်။ DataFrame မှာ column တစ်ခုစီနဲ့ တခြား column တွေကြား ဆက်နွှယ်မှုကို ဇယားနဲ့ ပြန်ရနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.corr(other[, method, min_periods])pandas.Series.countmethodရွေးထားတဲ့ axis၊ အုပ်စု သို့မဟုတ် window ထဲမှာ တန်ဖိုးရှိတဲ့ entry တွေကို ရေတွက်ပါတယ်။
ခေါ်သုံးပုံ
Series.count()pandas.Series.covmethodကိုက်ညီရာ တန်ဖိုးစုံတွဲတွေကို သုံးပြီး ဂဏန်းဒေတာနှစ်ခု အတူတကွ ပြောင်းလဲပုံ (covariance) ကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
Series.cov(other[, min_periods, ddof])pandas.Series.cummaxmethodနေရာတစ်ခုစီအထိ တွေ့ထားသမျှထဲက အကြီးဆုံးတန်ဖိုးကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.cummax([axis, skipna])pandas.Series.cumminmethodနေရာတစ်ခုစီအထိ တွေ့ထားသမျှထဲက အငယ်ဆုံးတန်ဖိုးကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.cummin([axis, skipna])pandas.Series.cumprodmethodတန်ဖိုးတွေကို အစဉ်လိုက် ဆက်မြှောက်ပြီး နေရာတစ်ခုစီအထိ ရထားတဲ့ မြှောက်လဒ်ကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.cumprod([axis, skipna])pandas.Series.cumsummethodတန်ဖိုးတွေကို အစဉ်လိုက် ဆက်ပေါင်းပြီး နေရာတစ်ခုစီအထိ ရထားတဲ့ စုစုပေါင်းကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.cumsum([axis, skipna])နမူနာ
orders["units"].cumsum()pandas.Series.describemethoddtype အလိုက် သင့်တော်တဲ့ စာရင်းကိန်းတွေကို ထုတ်ပေးပါတယ်။ ဥပမာ ဂဏန်းတွေအတွက် quartile၊ category တွေအတွက် အကြိမ်ရေကို တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.describe([percentiles, include, exclude])pandas.Series.diffmethodလက်ရှိတန်ဖိုးထဲက ရှေ့ကတန်ဖိုးကို နုတ်ပါတယ်။ ဘယ်နှနေရာ အကွာကတန်ဖိုးနဲ့ တွက်မလဲဆိုတာ periods နဲ့ ပြောင်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.diff([periods])နမူနာ
orders["units"].diff()pandas.Series.divmethodကိုက်ညီတဲ့တန်ဖိုးတွေကို စားပြီး ဒဿမအပိုင်းပါ ရလဒ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.div(other[, level, fill_value, axis])pandas.Series.divmodmethodကိုက်ညီတဲ့ တန်ဖိုးတစ်တွဲစီအတွက် floor division စားလဒ်နဲ့ အကြွင်းကို တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.divmod(other[, level, fill_value, axis])pandas.Series.dotmethodDot product သို့မဟုတ် matrix multiplication တွက်ပါတယ်။ သက်ဆိုင်ရာ label တွေ တူတာချင်း တွဲပေးပါတယ်။
ခေါ်သုံးပုံ
Series.dot(other)pandas.Series.dropmethodRow သို့မဟုတ် column တွေကို label နဲ့ ရွေးပြီး ဖယ်ပေးပါတယ်။ Column ဖယ်တဲ့အခါ columns= နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.drop([labels, axis, index, columns, ...])-
ထပ်နေတဲ့ တန်ဖိုး သို့မဟုတ် row တွေထဲက တစ်ခုကိုပဲ ပုံမှန် ထားပါတယ်။ ဘယ်တစ်ခုကို ထားမလဲ keep နဲ့ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.drop_duplicates(*[, keep, inplace, ...]) pandas.Series.droplevelmethodအဆင့်ဆင့်ဖွဲ့ထားတဲ့ index ထဲက level တစ်ခု သို့မဟုတ် အများကြီးကို ဖယ်ပါတယ်။
ခေါ်သုံးပုံ
Series.droplevel(level[, axis])pandas.Series.dropnamethodတန်ဖိုးပျောက်နေတဲ့ entry တွေကို ဖယ်ပါတယ်။ DataFrame မှာ subset နဲ့ စစ်မယ့် column တွေကို ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.dropna(*[, axis, inplace, how, ...])pandas.Series.dtaccessorDatetime၊ timedelta နဲ့ period အတွက် property နဲ့ method တွေ သုံးလို့ရတဲ့ accessor ကို ပြန်ပေးပါတယ်။
pandas.Series.dt.as_unitmethodအချိန်တန်ဖိုး သိမ်းထားတဲ့ ယူနစ်ကို ပြောင်းပေးပါတယ်။ တိကျမှုနဲ့ round လုပ်ပုံက ခွင့်ပြုထားတဲ့ စည်းမျဉ်းပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
Series.dt.as_unit(unit[, round_ok])pandas.Series.dt.ceilmethodTimestamp သို့မဟုတ် ကြာချိန်ကို သတ်မှတ်ထားတဲ့ frequency ရဲ့ နောက်အမှတ်အထိ ပင့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.dt.ceil(freq[, ambiguous, nonexistent])pandas.Series.dt.componentsattributepandas.Series.dt.dateattributeရက်စွဲတစ်ခုချင်းကို Python standard library ရဲ့ date object အဖြစ် ထုတ်ပေးပါတယ်။
pandas.Series.dt.dayattributeရက်စွဲတစ်ခုစီမှာ အဲဒီလရဲ့ ဘယ်နှရက်မြောက်လဲ ထုတ်ပေးပါတယ်။
-
ရက်သတ္တပတ်ထဲက နေ့အမည်ကို ပြန်ပေးပါတယ်။ ပြမယ့် ဘာသာစကားကို locale နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.dt.day_name([locale]) pandas.Series.dt.day_of_weekattributepandas.Series.dt.day_of_yearattributepandas.Series.dt.dayofweekattributeရက်သတ္တပတ်ထဲက နေ့နံပါတ်ကို ထုတ်ပေးပါတယ်။ တနင်္လာနေ့က 0 ဖြစ်ပြီး တနင်္ဂနွေနေ့က 6 ဖြစ်ပါတယ်။
pandas.Series.dt.dayofyearattributepandas.Series.dt.daysattributepandas.Series.dt.days_in_monthattributepandas.Series.dt.daysinmonthattributepandas.Series.dt.end_timeattributepandas.Series.dt.floormethodTimestamp သို့မဟုတ် ကြာချိန်ကို သတ်မှတ်ထားတဲ့ frequency ရဲ့ ရှေ့အမှတ်အထိ ချပေးပါတယ်။
ခေါ်သုံးပုံ
Series.dt.floor(freq[, ambiguous, nonexistent])pandas.Series.dt.freqattributepandas.Series.dt.hourattributepandas.Series.dt.is_leap_yearattributepandas.Series.dt.is_month_endattributepandas.Series.dt.is_month_startattributepandas.Series.dt.is_quarter_endattributepandas.Series.dt.is_quarter_startattributepandas.Series.dt.is_year_endattributepandas.Series.dt.is_year_startattribute-
ISO စံအရ နှစ်၊ ရက်သတ္တပတ်နံပါတ်နဲ့ ရက်သတ္တပတ်အတွင်း နေ့နံပါတ်ကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.dt.isocalendar() pandas.Series.dt.microsecondattributepandas.Series.dt.microsecondsattributepandas.Series.dt.minuteattributepandas.Series.dt.monthattributeပြက္ခဒိန်အရ လနံပါတ်ကို 1 ကနေ 12 အထိ ထုတ်ပေးပါတယ်။
-
လအမည်ကို ပြန်ပေးပါတယ်။ ပြမယ့် ဘာသာစကားကို locale နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.dt.month_name([locale]) pandas.Series.dt.nanosecondattributepandas.Series.dt.nanosecondsattribute-
ရက်စွဲနဲ့ timezone ကို ထိန်းထားပြီး နာရီအချိန်ကို ညသန်းခေါင်အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.dt.normalize() pandas.Series.dt.quarterattributepandas.Series.dt.qyearattributepandas.Series.dt.roundmethodကိန်းဂဏန်းကို သတ်မှတ်ထားတဲ့ ဒဿမနေရာအတိုင်း round လုပ်ပေးပါတယ်။ ရက်စွဲနဲ့ အချိန်တန်ဖိုးတွေအတွက် frequency သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.dt.round(freq[, ambiguous, nonexistent])pandas.Series.dt.secondattributepandas.Series.dt.secondsattributepandas.Series.dt.start_timeattribute-
ရက်စွဲ၊ အချိန်တွေကို သတ်မှတ်ထားတဲ့ပုံစံနဲ့ စာသားပြောင်းပါတယ်။
ခေါ်သုံးပုံ
Series.dt.strftime(date_format)နမူနာ
orders["day"].dt.strftime("%Y-%m") pandas.Series.dt.timeattributepandas.Series.dt.timetzattribute-
Datetime တန်ဖိုးတွေကို ထည့်ပေးထားတဲ့ frequency အတိုင်း period တွေအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.dt.to_period([freq]) -
Timestamp တန်ဖိုးတွေကို Python standard library ရဲ့ datetime object တွေပါတဲ့ Series အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.dt.to_pydatetime() -
pandas ကြာချိန်တန်ဖိုးတွေကို Python standard library ရဲ့ timedelta object တွေအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.dt.to_pytimedelta() -
ကြာချိန်ကို စက္ကန့်နဲ့ ပြပါတယ်။ စက္ကန့်ရဲ့ ဒဿမအပိုင်းလည်း ပါဝင်ပါတယ်။
ခေါ်သုံးပုံ
Series.dt.total_seconds() pandas.Series.dt.tzattribute-
တကယ့်အချိန်တစ်မှတ်တည်းကို ထိန်းထားပြီး အခြား timezone ရဲ့ နာရီအတိုင်း ပြောင်းပြပေးပါတယ်။
ခေါ်သုံးပုံ
Series.dt.tz_convert(tz) -
Timezone မပါတဲ့ datetime တွေအတွက် timezone သတ်မှတ်ပေးပါတယ်။ Timezone ဖြုတ်တဲ့အခါ ဒေသနာရီပေါ်က အချိန်တန်ဖိုးအတိုင်း ထားပါတယ်။
ခေါ်သုံးပုံ
Series.dt.tz_localize(tz[, ambiguous, ...]) pandas.Series.dt.unitattributepandas.Series.dt.weekdayattributepandas.Series.dt.yearattributeDatetime တန်ဖိုးတစ်ခုစီက နှစ်ကို ထုတ်ပေးပါတယ်။
pandas.Series.dtypepropertySeries က သုံးထားတဲ့ data type ကို ပြန်ပေးပါတယ်။
pandas.Series.dtypespropertypandas.Series.duplicatedmethodထပ်နေတဲ့ တန်ဖိုး ဒါမှမဟုတ် row တွေကို True/False နဲ့ မှတ်ပေးပါတယ်။ keep=False ဆို ထပ်နေတဲ့ အုပ်စုတိုင်းရဲ့ entry အားလုံးကို မှတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.duplicated([keep])pandas.Series.emptypropertySeries မှာ entry တစ်ခုမှ မရှိဘူးလား စစ်ပေးပါတယ်။
pandas.Series.eqmethodသက်ဆိုင်တဲ့ label တွေကို ညှိပြီး ကိုက်ညီတဲ့ တန်ဖိုးတွေ တူမတူ နှိုင်းယှဉ်ပါတယ်။
ခေါ်သုံးပုံ
Series.eq(other[, level, fill_value, axis])pandas.Series.equalsmethodObject နှစ်ခုရဲ့ အရွယ်အစားနဲ့ တန်ဖိုးတွေ တူမတူ စစ်ပါတယ်။ နှစ်ခုလုံးမှာ တန်ဖိုးပျောက်တဲ့နေရာ တူရင် အဲဒီနေရာကို တူတယ်လို့ ယူပါတယ်။
ခေါ်သုံးပုံ
Series.equals(other)pandas.Series.ewmmethodနောက်ဆုံးရတဲ့ တန်ဖိုးတွေကို ပိုအလေးပေးပြီး တွက်နိုင်ဖို့ exponentially weighted window တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
Series.ewm([com, span, halflife, alpha, ...])pandas.Series.expandingmethodအစကနေ လက်ရှိနေရာအထိ ပါဝင်တဲ့ window ကို တစ်နေရာချင်း တိုးချဲ့ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.expanding([min_periods, method])pandas.Series.explodemethodList ပုံစံတန်ဖိုးတွေကို row တစ်ခုစီအဖြစ် ဖြန့်ထုတ်ပါတယ်။ လိုအပ်တဲ့နေရာမှာ မူလ row label ကို ထပ်သုံးပါတယ်။
ခေါ်သုံးပုံ
Series.explode([ignore_index])နမူနာ
pd.Series([["A", "B"], ["C"]]).explode()pandas.Series.factorizemethodမထပ်တဲ့ တန်ဖိုးတစ်မျိုးစီအတွက် ကိန်းပြည့် code တစ်ခု သတ်မှတ်ပြီး code တွေနဲ့ မထပ်တဲ့တန်ဖိုးစာရင်းကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.factorize([sort, use_na_sentinel])pandas.Series.ffillmethodပျောက်နေတဲ့နေရာကို ရွေးထားတဲ့ ဦးတည်ချက်မှာ အရင်ဆုံးတွေ့ထားတဲ့ နောက်ဆုံးတန်ဖိုးနဲ့ ဖြည့်ပါတယ်။
ခေါ်သုံးပုံ
Series.ffill(*[, axis, inplace, limit, ...])pandas.Series.fillnamethodပျောက်နေတဲ့တန်ဖိုးတွေကို ဖြည့်ပါတယ်။ တန်ဖိုးတစ်ခုတည်းနဲ့ ဖြည့်နိုင်သလို label တူတဲ့တန်ဖိုးတွေနဲ့လည်း တွဲဖြည့်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.fillna(value, *[, axis, inplace, limit])pandas.Series.filtermethodDataFrame သို့မဟုတ် Series မှာ label နဲ့ ရွေးပါတယ်။ GroupBy မှာတော့ စစ်ဆေးတဲ့ function က True ပြန်ပေးတဲ့ အုပ်စုတွေကို ရွေးပါတယ်။
ခေါ်သုံးပုံ
Series.filter([arg, like, regex, axis, ...])-
အသုံးပြုလို့ရတဲ့ တန်ဖိုး ပထမဆုံးရှိတဲ့ index label ကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Series.first_valid_index() pandas.Series.flagspropertypandas.Series.floordivmethodကိုက်ညီတဲ့ တန်ဖိုးတွေကို စားပြီး ရလဒ်ကို အောက်ဘက်အနီးဆုံး ကိန်းပြည့်ဆီ ချပါတယ်။
ခေါ်သုံးပုံ
Series.floordiv(other[, level, fill_value, axis])pandas.Series.from_arrowmethodArrow နဲ့ လိုက်ဖက်တဲ့ array ပုံစံ object ကနေ Series တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.from_arrow(data)pandas.Series.gemethodကိုက်ညီတဲ့ တန်ဖိုးတွေကို ကြီးသည် သို့မဟုတ် ညီသည် စည်းမျဉ်းနဲ့ နှိုင်းယှဉ်ပါတယ်။
ခေါ်သုံးပုံ
Series.ge(other[, level, fill_value, axis])pandas.Series.getmethodKey နဲ့ object တစ်ခုကို ယူပါတယ်။ Series သို့မဟုတ် DataFrame မှာ key မတွေ့ရင် သတ်မှတ်ထားတဲ့ ပုံမှန်တန်ဖိုးကို ပြန်ပေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.get(key[, default])pandas.Series.groupbymethodဒေတာကို key အလိုက် ခွဲပါတယ်။ ရလာတဲ့ group တစ်ခုစီကို စုတွက်တာ၊ ပြောင်းတာနဲ့ စစ်ထုတ်တာတွေ လုပ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.groupby([by, level, as_index, sort, ...])pandas.Series.gtmethodကိုက်ညီတဲ့ တန်ဖိုးတွေ ဘယ်ဟာပိုကြီးလဲ နှိုင်းယှဉ်ပါတယ်။
ခေါ်သုံးပုံ
Series.gt(other[, level, fill_value, axis])pandas.Series.hasnanspropertypandas.Series.headmethodအစက row သို့မဟုတ် တန်ဖိုး n ခုကို ပြန်ပေးပါတယ်။ GroupBy မှာ အုပ်စုတစ်ခုစီကနေ အစ n ခု ယူပါတယ်။
ခေါ်သုံးပုံ
Series.head([n])pandas.Series.histmethodဂဏန်းတန်ဖိုးတွေ ဘယ်အပိုင်းအခြားမှာ ဘယ်လောက်ရှိလဲ မြင်ရဖို့ histogram ဆွဲပါတယ်။
ခေါ်သုံးပုံ
Series.hist([by, ax, grid, xlabelsize, ...])pandas.Series.iatpropertyသုညကစတဲ့ နေရာနံပါတ်နဲ့ ရွေးထားတဲ့ Series တန်ဖိုးတစ်ခုကို ဖတ်နိုင်သလို ပြင်နိုင်ပါတယ်။
pandas.Series.idxmaxmethodရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲမှာ အကြီးဆုံးတန်ဖိုးကို ပထမဆုံးတွေ့ရတဲ့ label ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.idxmax([axis, skipna])pandas.Series.idxminmethodရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲမှာ အငယ်ဆုံးတန်ဖိုးကို ပထမဆုံးတွေ့ရတဲ့ label ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.idxmin([axis, skipna])pandas.Series.ilocpropertyသုညကစတဲ့ နေရာနံပါတ်နဲ့ Series တန်ဖိုးတွေကို ရွေးနိုင်၊ ပြင်နိုင်ပါတယ်။
pandas.Series.indexattributeSeries တန်ဖိုးတွေနဲ့ တွဲထားတဲ့ index label တွေကို ပြန်ပေးပါတယ်။
-
object dtype ထဲက တန်ဖိုးတွေအတွက် ပိုသင့်တော်တဲ့ dtype ဖြစ်နိုင်မလား စစ်ပါတယ်။ ဂဏန်းပုံစံရေးထားတဲ့ စာသားတွေကို ဂဏန်းအဖြစ် အတင်းမပြောင်းပါ။
ခေါ်သုံးပုံ
Series.infer_objects([copy]) pandas.Series.infomethodSeries ရဲ့ index၊ dtype၊ တန်ဖိုးရှိတဲ့ entry အရေအတွက်နဲ့ memory အသုံးပြုမှုကို အကျဉ်းချုပ် ပြပါတယ်။
ခေါ်သုံးပုံ
Series.info([verbose, buf, max_cols, ...])-
နီးစပ်ရာမှာ ရှိတဲ့တန်ဖိုးတွေကို သုံးပြီး ပျောက်နေတဲ့တန်ဖိုးကို ရွေးထားတဲ့ interpolation နည်းနဲ့ ခန့်မှန်းဖြည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.interpolate([method, axis, limit, ...]) pandas.Series.is_monotonic_decreasingpropertypandas.Series.is_monotonic_increasingpropertypandas.Series.is_uniquepropertypandas.Series.isinmethodValue တစ်ခုချင်းစီက ပေးထားတဲ့ စာရင်းထဲ ပါသလား စစ်ပြီး boolean mask ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.isin(values)နမူနာ
orders["team"].isin(["North"])pandas.Series.isnamethodတန်ဖိုး ပျောက်နေသလား စစ်ပါတယ်။ တန်ဖိုးတစ်ခုကို ပေးရင် True/False တစ်ခု၊ array ပုံစံ ပေးရင် နေရာတစ်ခုစီအတွက် True/False တွေ ပြန်ရပါတယ်။
ခေါ်သုံးပုံ
Series.isna()pandas.Series.isnullmethodisna နဲ့ တူပြီး ဘယ်နေရာတွေမှာ တန်ဖိုးပျောက်လဲ စစ်ပါတယ်။
ခေါ်သုံးပုံ
Series.isnull()pandas.Series.itemmethodတန်ဖိုးတစ်ခုကို scalar အဖြစ် ထုတ်ပေးပါတယ်။ Series၊ Index နဲ့ array မှာ ပုံမှန်အားဖြင့် element တစ်ခုတည်း ရှိရပါတယ်။
ခေါ်သုံးပုံ
Series.item()pandas.Series.itemsmethodSeries ရဲ့ အစဉ်အတိုင်း index label နဲ့ တန်ဖိုးအတွဲတွေကို တစ်တွဲချင်း ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.items()pandas.Series.keysmethodSeries ရဲ့ index ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.keys()pandas.Series.kurtmethodဒေတာဖြန့်ကျက်ပုံမှာ အစွန်းဘက်တန်ဖိုးတွေ ဘယ်လောက်များလဲ သိနိုင်တဲ့ excess kurtosis ကို ခန့်မှန်းပါတယ်။
ခေါ်သုံးပုံ
Series.kurt(*[, axis, skipna, numeric_only])pandas.Series.kurtosismethodkurt နဲ့ တူတဲ့ excess kurtosis တွက်ချက်မှုကို သုံးပါတယ်။
ခေါ်သုံးပုံ
Series.kurtosis(*[, axis, skipna, numeric_only])-
အသုံးပြုလို့ရတဲ့ တန်ဖိုး နောက်ဆုံးရှိတဲ့ index label ကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Series.last_valid_index() pandas.Series.lemethodကိုက်ညီတဲ့ တန်ဖိုးတွေကို ငယ်သည် သို့မဟုတ် ညီသည် စည်းမျဉ်းနဲ့ နှိုင်းယှဉ်ပါတယ်။
ခေါ်သုံးပုံ
Series.le(other[, level, fill_value, axis])-
ကွင်းစတုရန်း [] နဲ့ တန်ဖိုးတစ်ခု သို့မဟုတ် ဒေတာအပိုင်းတစ်ခု ရွေးတဲ့ အလုပ်ကို လုပ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.list.__getitem__(key) -
Arrow list တစ်ခုစီကို တန်ဖိုးတစ်ခုချင်းစီအဖြစ် ဖြန့်ပြီး ထွက်လာတဲ့ တန်ဖိုးတိုင်းမှာ မူလ index label ကို သုံးပါတယ်။
ခေါ်သုံးပုံ
Series.list.flatten() pandas.Series.list.lenmethodElement တစ်ခုစီရဲ့ အရှည်ကို တွက်ပေးပါတယ်။ ဥပမာ စာသားတစ်ခုစီမှာ စာလုံးဘယ်နှလုံး ပါသလဲ ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.list.len()pandas.Series.locpropertyLabel ဒါမှမဟုတ် boolean mask နဲ့ Series တန်ဖိုးတွေကို ရွေးနိုင်၊ ပြင်နိုင်ပါတယ်။
pandas.Series.ltmethodကိုက်ညီတဲ့ တန်ဖိုးတွေ ဘယ်ဟာပိုငယ်လဲ နှိုင်းယှဉ်ပါတယ်။
ခေါ်သုံးပုံ
Series.lt(other[, level, fill_value, axis])pandas.Series.mapmethodSeries ထဲက value တစ်ခုချင်းကို dictionary၊ Series သို့မဟုတ် function နဲ့ ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.map([func, na_action, engine])နမူနာ
orders["team"].map({"North": "N", "South": "S"})pandas.Series.maskmethodသတ်မှတ်ထားတဲ့ condition က True ဖြစ်တဲ့နေရာမှာ တန်ဖိုး အစားထိုးပါတယ်။
ခေါ်သုံးပုံ
Series.mask(cond[, other, inplace, axis, level])pandas.Series.maxmethodရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အကြီးဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Series.max(*[, axis, skipna, numeric_only])pandas.Series.meanmethodရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေရဲ့ ပျမ်းမျှကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
Series.mean(*[, axis, skipna, numeric_only])pandas.Series.medianmethodတန်ဖိုးတွေကို စီလိုက်ရင် အလယ်မှာရှိတဲ့ တန်ဖိုးကို ယူပါတယ်။ အလယ်မှာ နှစ်ခုရှိရင် နှစ်ခုရဲ့ ပျမ်းမျှကို ယူပါတယ်။
ခေါ်သုံးပုံ
Series.median(*[, axis, skipna, numeric_only])-
pandas က သိမ်းထားတဲ့ ဒေတာအတွက် memory byte အရေအတွက် ပြပေးပါတယ်။ object dtype အတွက် deep=True ပေးရင် အတွင်းက object တွေ သုံးတဲ့ memory ကိုပါ ပိုအသေးစိတ် ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
Series.memory_usage([index, deep]) pandas.Series.minmethodရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အငယ်ဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Series.min(*[, axis, skipna, numeric_only])pandas.Series.modmethodတန်ဖိုးစုံတွဲ တစ်တွဲစီအတွက် စားကြွင်းကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
Series.mod(other[, level, fill_value, axis])pandas.Series.modemethodအကြိမ်အများဆုံး တွေ့ရတဲ့ တန်ဖိုးကို ရှာပါတယ်။ အကြိမ်ရေတူရင် တန်ဖိုးအများကြီး ပြန်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.mode([dropna])pandas.Series.mulmethodသက်ဆိုင်တဲ့ label တွေကို ညှိပြီး ကိုက်ညီတဲ့ တန်ဖိုးတွေကို မြှောက်ပါတယ်။
ခေါ်သုံးပုံ
Series.mul(other[, level, fill_value, axis])pandas.Series.namepropertySeries ရဲ့ အမည်ကို ပြန်ပေးပါတယ်။ DataFrame က column တစ်ခု ရွေးထားရင် အဲဒီ column အမည် ဖြစ်လေ့ရှိပါတယ်။
pandas.Series.nbytespropertypandas.Series.ndimpropertypandas.Series.nemethodကိုက်ညီတဲ့ တန်ဖိုးတွေ မတူမတူ စစ်ပါတယ်။
ခေါ်သုံးပုံ
Series.ne(other[, level, fill_value, axis])pandas.Series.nlargestmethodအကြီးဆုံး တန်ဖိုး n ခုကို ယူပါတယ်။
ခေါ်သုံးပုံ
Series.nlargest([n, keep])pandas.Series.notnamethodisna ရဲ့ True နဲ့ False ကို ပြောင်းပြန်ယူပြီး တန်ဖိုးရှိတဲ့နေရာတွေကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Series.notna()pandas.Series.notnullmethodnotna နဲ့ တူပြီး တန်ဖိုးရှိတဲ့နေရာတွေကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Series.notnull()pandas.Series.nsmallestmethodအငယ်ဆုံး တန်ဖိုး n ခုကို ယူပါတယ်။
ခေါ်သုံးပုံ
Series.nsmallest([n, keep])pandas.Series.nuniquemethodမထပ်တဲ့ တန်ဖိုး ဘယ်နှမျိုးရှိလဲ ရေတွက်ပါတယ်။ လက်ခံတဲ့နေရာမှာ dropna=False ပေးရင် တန်ဖိုးပျောက်တာကိုလည်း တစ်မျိုးအဖြစ် ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
Series.nunique([dropna])pandas.Series.pct_changemethodအရင်တန်ဖိုးနဲ့ ယှဉ်ပြီး ဘယ်အချိုး ပြောင်းလဲသလဲ တွက်ပါတယ်။ ရာခိုင်နှုန်းလိုရင် ရလဒ်ကို 100 နဲ့ မြှောက်ပါ။
ခေါ်သုံးပုံ
Series.pct_change([periods, fill_method, freq])pandas.Series.pipemethodMethod chain ကို မဖြတ်ဘဲ လက်ရှိ object ကို function တစ်ခုဆီ ပေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.pipe(func, *args, **kwargs)pandas.Series.plotmethodရွေးထားတဲ့ plotting backend နဲ့ kind ကို သုံးပြီး chart ဆွဲပေးပါတယ်။
ခေါ်သုံးပုံ
Series.plot([kind, ax, figsize, ....])pandas.Series.plot.areamethodအစဉ်လိုက်ရှိတဲ့ တန်ဖိုးတွေရဲ့ ပမာဏကို မြင်သာစေဖို့ မျဉ်းအောက်က ဧရိယာကို အရောင်ဖြည့်ပြီး ပြပါတယ်။
ခေါ်သုံးပုံ
Series.plot.area([x, y, stacked])pandas.Series.plot.barmethodအမျိုးအစားအလိုက် တန်ဖိုးတွေကို နှိုင်းယှဉ်ဖို့ ဒေါင်လိုက် bar chart ဆွဲပေးပါတယ်။
ခေါ်သုံးပုံ
Series.plot.bar([x, y, color])pandas.Series.plot.barhmethodအလျားလိုက် bar chart ဆွဲပေးပါတယ်။ အမျိုးအစားအမည်တွေ ရှည်တဲ့အခါ ဖတ်ရလွယ်ပါတယ်။
ခေါ်သုံးပုံ
Series.plot.barh([x, y, color])pandas.Series.plot.boxmethodအလယ်ကိန်း (median)၊ quartile တွေနဲ့ ဒေတာပြန့်နှံ့မှုကို နှိုင်းယှဉ်ဖို့ box plot ဆွဲပေးပါတယ်။
ခေါ်သုံးပုံ
Series.plot.box([by])-
ကိန်းဂဏန်းတန်ဖိုးတွေ ဘယ်နေရာမှာ စုနေလဲ ခန့်မှန်းပြီး ချောမွေ့တဲ့ မျဉ်းနဲ့ ပြပါတယ်။
ခေါ်သုံးပုံ
Series.plot.density([bw_method, ind, weights]) pandas.Series.plot.histmethodဂဏန်းတန်ဖိုးတွေ ဘယ်အပိုင်းအခြားမှာ ဘယ်လောက်ရှိလဲ မြင်ရဖို့ histogram ဆွဲပါတယ်။
ခေါ်သုံးပုံ
Series.plot.hist([by, bins])pandas.Series.plot.kdemethodကိန်းဂဏန်းဒေတာရဲ့ ပြန့်နှံ့ပုံကို ခန့်မှန်းတဲ့ kernel density plot ဆွဲပေးပါတယ်။
ခေါ်သုံးပုံ
Series.plot.kde([bw_method, ind, weights])pandas.Series.plot.linemethodဒေတာအမှတ်တွေကို လက်ရှိအစဉ်အတိုင်း မျဉ်းနဲ့ ဆက်ပြီး ပြပါတယ်။
ခေါ်သုံးပုံ
Series.plot.line([x, y, color])pandas.Series.plot.piemethodအမျိုးအစားတစ်ခုစီရဲ့ တန်ဖိုးအချိုးအစားအလိုက် အပိုင်းတွေ ခွဲပြတဲ့ pie chart ဆွဲပေးပါတယ်။
ခေါ်သုံးပုံ
Series.plot.pie([y])pandas.Series.popmethodLabel နဲ့ ရွေးထားတဲ့ entry ကို ဖယ်ပြီး ဖယ်လိုက်တဲ့ တန်ဖိုးကို ပြန်ပေးပါတယ်။ DataFrame မှာ ဖယ်လိုက်တဲ့ column ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.pop(item)pandas.Series.powmethodတန်ဖိုးတစ်ခုစီကို သက်ဆိုင်ရာ ထပ်ညွှန်းကိန်းနဲ့ ထပ်တင်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.pow(other[, level, fill_value, axis])pandas.Series.prodmethodရွေးထားတဲ့ axis၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေကို မြှောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.prod(*[, axis, skipna, numeric_only, ...])pandas.Series.productmethodprod နဲ့ တန်ဖိုးတွေကို မြှောက်ပြီး မြှောက်လဒ် ထုတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.product(*[, axis, skipna, ...])pandas.Series.quantilemethodတန်ဖိုးတွေကို အစဉ်လိုက်စီလိုက်တဲ့အခါ သတ်မှတ်ထားတဲ့ အချိုးနေရာမှာ ရှိမယ့်တန်ဖိုး (quantile) ကို ခန့်မှန်းပါတယ်။
ခေါ်သုံးပုံ
Series.quantile([q, interpolation])pandas.Series.raddmethodထည့်လိုက်တဲ့ တန်ဖိုးကို ပေါင်းခြင်းရဲ့ ဘယ်ဘက်မှာ ထားပြီး မူလတန်ဖိုးနဲ့ ပေါင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.radd(other[, level, fill_value, axis])pandas.Series.rankmethodတန်ဖိုးတွေကို အစဉ်လိုက် နံပါတ်ပေးပြီး တန်ဖိုးတူတဲ့အခါ ဘယ်လိုအဆင့် သတ်မှတ်မလဲ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.rank([axis, method, numeric_only, ...])နမူနာ
orders["units"].rank(method="dense", ascending=False)pandas.Series.rdivmethodထည့်လိုက်တဲ့ တန်ဖိုးကို မူလတန်ဖိုးတစ်ခုစီနဲ့ စားပြီး ဒဿမ ထည့်တွက်တဲ့ စားလဒ်ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.rdiv(other[, level, fill_value, axis])pandas.Series.rdivmodmethodထည့်လိုက်တဲ့ တန်ဖိုးတွေကို စားတည်ကိန်းအဖြစ် သုံးပြီး စားလဒ်နဲ့ အကြွင်း နှစ်မျိုးလုံး ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.rdivmod(other[, level, fill_value, axis])pandas.Series.reindexmethodသတ်မှတ်လိုက်တဲ့ label တွေအတိုင်း ဒေတာကို ပြန်စီပြီး မူလမှာမရှိတဲ့ label နေရာတွေကို ဖြည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.reindex([index, axis, method, copy, ...])-
အခြား pandas object ရဲ့ label တွေအတိုင်း ဒေတာကို ပြန်ညှိပေးပါတယ်။
ခေါ်သုံးပုံ
Series.reindex_like(other[, method, copy, ...]) pandas.Series.renamemethodMapping သို့မဟုတ် function နဲ့ label တွေကို ပြောင်းပေးပါတယ်။ Series ရဲ့ အမည်ကိုလည်း ပြောင်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.rename([index, axis, copy, inplace, ...])-
Axis ရဲ့ အမည်ကို ပြောင်းပါတယ်။ အဲဒီ axis ပေါ်က label တွေကို မူလအတိုင်း ထားပါတယ်။
ခေါ်သုံးပုံ
Series.rename_axis([mapper, index, axis, ...]) -
MultiIndex ထဲက index level တွေရဲ့ အစဉ်ကို ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.reorder_levels(order) pandas.Series.repeatmethodတန်ဖိုးတစ်ခုစီကို သတ်မှတ်ထားတဲ့ အကြိမ်အရေအတွက်အတိုင်း ထပ်ပေးပါတယ်။ စာသားမှာတော့ စာသားတစ်ခုစီအတွင်း ထပ်ရေးပေးပါတယ်။
ခေါ်သုံးပုံ
Series.repeat(repeats[, axis])pandas.Series.replacemethodသတ်မှတ်ထားတဲ့ mapping သို့မဟုတ် ကိုက်ညီတဲ့ စာသားပုံစံအတိုင်း တန်ဖိုးတွေကို အစားထိုးပါတယ်။ ပုံမှန်စာသား pattern အစား regular expression သုံးဖို့ regex သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.replace([to_replace, value, inplace, ...])pandas.Series.resamplemethodDatetime index ကို နာရီ၊ ရက် စတဲ့ interval အလိုက် အုပ်စုခွဲပြီး summary တွက်ဖို့ ပြင်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.resample(rule[, closed, label, ...])နမူနာ
orders.set_index("day")["units"].resample("2D").sum(min_count=1)-
Index ကို သုညကစတဲ့ နံပါတ်အစဉ် ပြန်ထားပေးပါတယ်။ မူလ index label တွေကို column အဖြစ် ထည့်လို့ရပါတယ်။
ခေါ်သုံးပုံ
Series.reset_index([level, drop, name, ...]) pandas.Series.rfloordivmethodထည့်လိုက်တဲ့ တန်ဖိုးကို စားတည်ကိန်းအဖြစ် သုံးပြီး floor division နဲ့ စားလဒ် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.rfloordiv(other[, level, fill_value, ...])pandas.Series.rmodmethodထည့်လိုက်တဲ့ တန်ဖိုးကို မူလတန်ဖိုးတစ်ခုစီနဲ့ စားတဲ့အခါ ရတဲ့ အကြွင်းကို တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.rmod(other[, level, fill_value, axis])pandas.Series.rmulmethodထည့်လိုက်တဲ့ တန်ဖိုးကို မြှောက်ခြင်းရဲ့ ဘယ်ဘက်မှာ ထားပြီး မူလတန်ဖိုးနဲ့ မြှောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.rmul(other[, level, fill_value, axis])pandas.Series.rollingmethodRow အရေအတွက် သို့မဟုတ် အချိန်အပိုင်းအခြားအလိုက် ရွေ့နေတဲ့ window ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
Series.rolling(window[, min_periods, ...])နမူနာ
orders["units"].rolling(window=2, min_periods=1).mean()pandas.Series.roundmethodကိန်းဂဏန်းကို သတ်မှတ်ထားတဲ့ ဒဿမနေရာအတိုင်း round လုပ်ပေးပါတယ်။ ရက်စွဲနဲ့ အချိန်တန်ဖိုးတွေအတွက် frequency သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.round([decimals])pandas.Series.rpowmethodထည့်လိုက်တဲ့ တန်ဖိုးတွေကို အခြေကိန်း၊ မူလတန်ဖိုးတွေကို ထပ်ညွှန်းကိန်းအဖြစ် သုံးပြီး ထပ်တင်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.rpow(other[, level, fill_value, axis])pandas.Series.rsubmethodထည့်လိုက်တဲ့ တန်ဖိုးထဲက မူလတန်ဖိုးတစ်ခုစီကို နုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.rsub(other[, level, fill_value, axis])pandas.Series.rtruedivmethodထည့်လိုက်တဲ့ တန်ဖိုးကို စားတည်ကိန်းအဖြစ် သုံးပြီး ဒဿမ ထည့်တွက်တဲ့ စားလဒ် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.rtruediv(other[, level, fill_value, axis])pandas.Series.samplemethodRow၊ entry သို့မဟုတ် column တွေကို ကျပန်းရွေးပါတယ်။ ထပ်စမ်းတိုင်း တူတဲ့ရလဒ်လိုရင် random_state ပေးပါ။
ခေါ်သုံးပုံ
Series.sample([n, frac, replace, weights, ...])-
အစဉ်လိုက် စီထားတဲ့ ဒေတာထဲကို တန်ဖိုးအသစ် ထည့်တဲ့အခါ အစဉ်မပျက်စေမယ့် နေရာတွေကို ရှာပေးပါတယ်။
ခေါ်သုံးပုံ
Series.searchsorted(value[, side, sorter]) pandas.Series.semmethodရွေးထားတဲ့ ဒေတာအတွက် ပျမ်းမျှရဲ့ standard error ကို တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.sem(*[, axis, skipna, ddof, numeric_only])pandas.Series.set_axismethodAxis တစ်ခုမှာရှိတဲ့ label အားလုံးကို အရေအတွက်တူတဲ့ label အသစ်တွေနဲ့ အစားထိုးပေးပါတယ်။
ခေါ်သုံးပုံ
Series.set_axis(labels, *[, axis, copy])pandas.Series.set_flagsmethodFlag ပြောင်းထားတဲ့ object ကို ပြန်ပေးပါတယ်။ ဥပမာ label ထပ်နေတာကို လက်ခံမလား သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.set_flags(*[, copy, ...])pandas.Series.shapepropertyEntry အရေအတွက်ကို element တစ်ခုပါတဲ့ tuple အဖြစ် ပြန်ပေးပါတယ်။
pandas.Series.shiftmethodတန်ဖိုးတွေကို သတ်မှတ်ထားတဲ့ နေရာအရေအတွက်အတိုင်း ရွှေ့ပါတယ်။ အချိန် frequency ပေးရင် label တွေကို ရွှေ့ပါတယ်။
ခေါ်သုံးပုံ
Series.shift([periods, freq, axis, ...])နမူနာ
orders["units"].shift(1)pandas.Series.sizepropertyMissing value အပါအဝင် တန်ဖိုးအရေအတွက်ကို ပြန်ပေးပါတယ်။
pandas.Series.skewmethodဂဏန်းဒေတာ ဖြန့်ကျက်ပုံက ဘယ်လောက် မညီမျှလဲဆိုတာ skewness နဲ့ တွက်ပါတယ်။
ခေါ်သုံးပုံ
Series.skew(*[, axis, skipna, numeric_only])pandas.Series.sort_indexmethodRow သို့မဟုတ် column တွေကို သူတို့ရဲ့ label အလိုက် စီပေးပါတယ်။
ခေါ်သုံးပုံ
Series.sort_index(*[, axis, level, ...])-
ဒေတာတန်ဖိုးတစ်ခု သို့မဟုတ် အများအပြားအလိုက် စီပေးပါတယ်။ Missing value တွေကို ဘယ်နေရာမှာ ထားမလဲ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.sort_values(*[, axis, ascending, ...]) pandas.Series.sparseaccessorSparse ဒေတာနဲ့ သက်ဆိုင်တဲ့ method နဲ့ property တွေကို သုံးနိုင်တဲ့ accessor ကို ပေးပါတယ်။
pandas.Series.sparse.densityattributepandas.Series.sparse.fill_valueattribute-
SciPy coordinate matrix ကနေ sparse Series တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.sparse.from_coo(A[, dense_index]) pandas.Series.sparse.npointsattributepandas.Series.sparse.sp_valuesattribute-
pandas မှာ sparse ပုံစံနဲ့ သိမ်းထားတဲ့ ဒေတာကို SciPy coordinate format သို့ ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.sparse.to_coo([row_levels, ...]) pandas.Series.squeezemethodတန်ဖိုးတစ်ခုစီပဲရှိတဲ့ axis တွေကို ချုံ့ပြီး dimension ပိုနည်းတဲ့ object သို့မဟုတ် scalar ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.squeeze([axis])pandas.Series.stdmethodVariance ရဲ့ square root အဖြစ် standard deviation ကို တွက်ပါတယ်။ ဘယ် divisor သုံးမလဲဆိုတာ ddof နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.std(*[, axis, skipna, ddof, numeric_only])pandas.Series.straccessorစာသားတန်ဖိုးတစ်ခုစီကို ပြောင်းလဲ၊ ရှာဖွေ၊ စစ်ဆေးနိုင်တဲ့ accessor ကို ပေးပါတယ်။
-
စာသားတစ်ခုစီရဲ့ ပထမစာလုံးကို အကြီးပြောင်းပြီး ကျန်တဲ့ စာလုံးတွေကို အသေးပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.capitalize() -
စာလုံးအကြီးအသေး ကွာခြားမှုကို ထည့်မတွက်ဘဲ စာသားတွေ နှိုင်းယှဉ်နိုင်ဖို့ casefold လုပ်ပေးပါတယ်။ ဘာသာစကားအလိုက် lower ထက် ပိုကျယ်ပြန့်တဲ့ ပြောင်းလဲမှုတွေ လုပ်ပါတယ်။
ခေါ်သုံးပုံ
Series.str.casefold() pandas.Series.str.catmethodစာသားအားလုံးကို စာသားတစ်ခုအဖြစ် ဆက်ပေးပါတယ်။ အခြား input တွေထည့်ရင် label တန်းညှိပြီး row တစ်ခုချင်း ဆက်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.str.cat([others, sep, na_rep, join])pandas.Series.str.centermethodစာသားတစ်ခုစီကို အနည်းဆုံးလိုတဲ့ အရှည်အထိ နှစ်ဖက်လုံးမှာ စာလုံးဖြည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.center(width[, fillchar])-
စာသားတစ်ခုစီမှာ pattern ပါသလား စစ်ပါတယ်။ ပုံမှန်စာသားအတိုင်း ရှာချင်ရင် regex=False သုံးပါ။
ခေါ်သုံးပုံ
Series.str.contains(pat[, case, flags, na, ...])နမူနာ
orders["team"].str.contains("north", case=False, regex=False) pandas.Series.str.countmethodစာသားတစ်ခုစီမှာ ထပ်နေတဲ့ အပိုင်းတွေ ထပ်မတွက်ဘဲ regex နဲ့ ကိုက်တဲ့ အကြိမ်အရေအတွက်ကို ရေတွက်ပါတယ်။
ခေါ်သုံးပုံ
Series.str.count(pat[, flags])နမူနာ
pd.Series(["A-A", "B-A"]).str.count("A")pandas.Series.str.decodemethodသတ်မှတ်ထားတဲ့ encoding ကို သုံးပြီး bytes ကနေ စာသားအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.decode(encoding[, errors, dtype])pandas.Series.str.encodemethodသတ်မှတ်ထားတဲ့ encoding ကို သုံးပြီး စာသားကနေ bytes အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.encode(encoding[, errors])-
စာသားတစ်ခုစီရဲ့ အဆုံးမှာ သတ်မှတ်ထားတဲ့ နောက်ဆက်စာသားတစ်ခုခု ရှိမရှိ စစ်ပါတယ်။
ခေါ်သုံးပုံ
Series.str.endswith(pat[, na]) -
စာသားတစ်ခုစီမှာ regex နဲ့ ပထမဆုံး ကိုက်တဲ့အပိုင်းက capture group တွေကို ထုတ်ပေးပါတယ်။ ထုတ်ချင်တဲ့ group ကို regex ထဲမှာ ကွင်း () နဲ့ သတ်မှတ်ပါ။
ခေါ်သုံးပုံ
Series.str.extract(pat[, flags, expand]) -
Pattern နဲ့ ကိုက်တဲ့ အကြိမ်တိုင်းက capture group တွေကို ထုတ်ပေးပါတယ်။ Row တစ်ခုတည်းမှာ တွေ့တဲ့ match တွေကို ခွဲဖို့ index level တစ်ခုပါ ထည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.extractall(pat[, flags]) pandas.Series.str.findmethodရှာတဲ့စာသားကို ပထမဆုံး တွေ့တဲ့ နေရာနံပါတ် ပြန်ပေးပါတယ်။ ရှာမတွေ့ရင် -1 ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.find(sub[, start, end])-
စာသားတစ်ခုစီမှာ regex နဲ့ ကိုက်ပြီး အပိုင်းချင်း မထပ်တဲ့ match အားလုံးကို စုပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.findall(pat[, flags]) -
စာသားတစ်ခုလုံးက regular expression နဲ့ ကိုက်ညီသလား စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.fullmatch(pat[, case, flags, na]) pandas.Series.str.getmethodစာသား သို့မဟုတ် list ပုံစံ တန်ဖိုးတစ်ခုစီက သတ်မှတ်ထားတဲ့ နေရာနံပါတ် သို့မဟုတ် key အတိုင်း element တစ်ခု ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.get(i)-
စာသားတစ်ခုစီကို အပိုင်းလိုက် ခွဲပြီး အပိုင်းတစ်မျိုးစီ ပါမပါ ပြတဲ့ indicator column တစ်ခုစီ တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.get_dummies([sep, dtype]) pandas.Series.str.indexmethodရှာတဲ့စာသားကို ပထမဆုံး တွေ့တဲ့ နေရာနံပါတ် ပြန်ပေးပါတယ်။ ရှာမတွေ့ရင် error တက်ပါတယ်။
ခေါ်သုံးပုံ
Series.str.index(sub[, start, end])-
စာသားမှာ အနည်းဆုံး စာလုံးတစ်လုံးရှိပြီး အားလုံးက အက္ခရာ သို့မဟုတ် ကိန်းဂဏန်းတွေလား စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.isalnum() -
ပါဝင်တဲ့ စာလုံးအားလုံးက အက္ခရာတွေလား စစ်ပေးပါတယ်။ အလွတ်စာသားအတွက် False ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.isalpha() -
ပါဝင်တဲ့ စာလုံးအားလုံး ASCII character set ထဲမှာ ပါမပါ စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.isascii() -
စာလုံးပါဝင်ပြီး အဲဒီစာလုံးအားလုံး Unicode decimal digit ဖြစ်မဖြစ် စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.isdecimal() -
စာလုံးပါဝင်ပြီး စာလုံးအားလုံး Unicode ရဲ့ digit သတ်မှတ်ချက်နဲ့ ကိုက်ညီမညီ စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.isdigit() -
စာလုံးအကြီးအသေး ခွဲလို့ရတဲ့ စာလုံးတစ်လုံး အနည်းဆုံးပါပြီး အဲဒီစာလုံးအားလုံး အသေး ဖြစ်မဖြစ် စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.islower() -
စာလုံးပါဝင်ပြီး အားလုံးမှာ Unicode အရ ကိန်းဂဏန်းတန်ဖိုး ရှိမရှိ စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.isnumeric() -
စာလုံးပါဝင်ပြီး အားလုံးက space လို whitespace တွေပဲလား စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.isspace() -
စာသားက Python ရဲ့ title case သတ်မှတ်ချက်နဲ့ ကိုက်ညီသလား စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.istitle() -
စာလုံးအကြီးအသေး ခွဲလို့ရတဲ့ စာလုံးတစ်လုံး အနည်းဆုံးပါပြီး အဲဒီစာလုံးအားလုံး အကြီး ဖြစ်မဖြစ် စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.isupper() pandas.Series.str.joinmethodList ပုံစံတန်ဖိုးတစ်ခုစီထဲက စာသားတွေကို သတ်မှတ်ထားတဲ့ separator နဲ့ ဆက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.join(sep)pandas.Series.str.lenmethodElement တစ်ခုစီရဲ့ အရှည်ကို တွက်ပေးပါတယ်။ ဥပမာ စာသားတစ်ခုစီမှာ စာလုံးဘယ်နှလုံး ပါသလဲ ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.len()pandas.Series.str.ljustmethodစာသားတွေ ဘယ်ဘက်ညီဖို့ လိုတဲ့အရှည်အထိ ညာဘက်မှာ စာလုံးဖြည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.ljust(width[, fillchar])pandas.Series.str.lowermethodစာသားထဲက အက္ခရာတွေကို lowercase အဖြစ် ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
Series.str.lower()နမူနာ
orders["team"].str.lower()pandas.Series.str.lstripmethodစာသားတစ်ခုစီရဲ့ အစမှာရှိတဲ့ whitespace သို့မဟုတ် သတ်မှတ်ထားတဲ့ စာလုံးတွေကို ဖယ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.lstrip([to_strip])pandas.Series.str.matchmethodစာသားတစ်ခုစီရဲ့ အစမှာ regex နဲ့ ကိုက်ညီမှုရှိမရှိ စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.match(pat[, case, flags, na])-
Unicode စာသားကို NFC လို ရွေးထားတဲ့ စံပုံစံအဖြစ် ပြောင်းပေးပါတယ်။ စာလုံးဖော်ပြပုံ မတူပေမယ့် အဓိပ္ပာယ်တူတဲ့ စာသားတွေကို တူညီသလား စစ်ရာမှာ သုံးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.str.normalize(form) pandas.Series.str.padmethodစာသားတစ်ခုစီကို အနည်းဆုံးလိုတဲ့ အရှည်အထိ သတ်မှတ်ထားတဲ့ ဘက်မှာ စာလုံးဖြည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.pad(width[, side, fillchar])-
ပထမဆုံး တွေ့တဲ့ separator နေရာမှာ ခွဲပြီး ရှေ့အပိုင်း၊ separator နဲ့ နောက်အပိုင်းကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.partition([sep, expand]) -
သတ်မှတ်ထားတဲ့ ရှေ့ဆက်စာသား ပါနေတဲ့နေရာမှာ အဲဒီစာသားကို တစ်ကြိမ် ဖယ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.removeprefix(prefix) -
သတ်မှတ်ထားတဲ့ နောက်ဆက်စာသား ပါနေတဲ့နေရာမှာ အဲဒီစာသားကို တစ်ကြိမ် ဖယ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.removesuffix(suffix) pandas.Series.str.repeatmethodတန်ဖိုးတစ်ခုစီကို သတ်မှတ်ထားတဲ့ အကြိမ်အရေအတွက်အတိုင်း ထပ်ပေးပါတယ်။ စာသားမှာတော့ စာသားတစ်ခုစီအတွင်း ထပ်ရေးပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.repeat(repeats)-
စာသားတစ်ခုစီထဲမှာ ကိုက်ညီတဲ့ အပိုင်းကို အစားထိုးပေးပါတယ်။ Regular expression နဲ့ ရှာဖို့ regex=True သုံးပါ။
ခေါ်သုံးပုံ
Series.str.replace(pat[, repl, n, case, ...])နမူနာ
pd.Series(["A-01", "B-02"]).str.replace("-", "_", regex=False) pandas.Series.str.rfindmethodရှာတဲ့စာသားကို နောက်ဆုံး တွေ့ရတဲ့ နေရာနံပါတ် ပြန်ပေးပါတယ်။ မတွေ့ရင် -1 ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.rfind(sub[, start, end])pandas.Series.str.rindexmethodရှာတဲ့စာသားကို နောက်ဆုံး တွေ့ရတဲ့ နေရာနံပါတ် ပြန်ပေးပါတယ်။ မတွေ့ရင် error တက်ပါတယ်။
ခေါ်သုံးပုံ
Series.str.rindex(sub[, start, end])pandas.Series.str.rjustmethodစာသားတွေ ညာဘက်ညီဖို့ လိုတဲ့အရှည်အထိ ဘယ်ဘက်မှာ စာလုံးဖြည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.rjust(width[, fillchar])-
နောက်ဆုံး တွေ့တဲ့ separator နေရာမှာ ခွဲပြီး ရှေ့အပိုင်း၊ separator နဲ့ နောက်အပိုင်းကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.rpartition([sep, expand]) pandas.Series.str.rsplitmethodစာသားတွေကို ညာဘက်ကနေ စခွဲပေးပါတယ်။ ခွဲမယ့် အကြိမ်အရေအတွက် ကန့်သတ်တဲ့အခါ အသုံးဝင်ပါတယ်။
ခေါ်သုံးပုံ
Series.str.rsplit([pat, n, expand])pandas.Series.str.rstripmethodစာသားတစ်ခုစီရဲ့ အဆုံးမှာရှိတဲ့ whitespace သို့မဟုတ် သတ်မှတ်ထားတဲ့ စာလုံးတွေကို ဖယ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.rstrip([to_strip])pandas.Series.str.slicemethodPython ရဲ့ start၊ stop နဲ့ step အတိုင်း စာသား အပိုင်းတစ်ခုကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.slice([start, stop, step])-
စာသားတစ်ခုစီမှာ သတ်မှတ်လိုက်တဲ့ နေရာနှစ်ခုကြားက အပိုင်းကို အစားထိုးပါတယ်။
ခေါ်သုံးပုံ
Series.str.slice_replace([start, stop, repl]) pandas.Series.str.splitmethodစာသားကို delimiter နဲ့ ပိုင်းပါတယ်။ အပိုင်းတွေကို column တစ်ခုစီ ထုတ်ချင်ရင် expand=True သုံးပါ။
ခေါ်သုံးပုံ
Series.str.split([pat, n, expand, regex])နမူနာ
pd.Series(["A-01", "B-02"]).str.split("-", expand=True)-
စာသားတစ်ခုစီရဲ့ အစမှာ သတ်မှတ်ထားတဲ့ ရှေ့ဆက်စာသားတစ်ခုခု ရှိမရှိ စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.startswith(pat[, na]) pandas.Series.str.stripmethodစာသားတစ်ခုစီရဲ့ ရှေ့နဲ့ နောက်က space တွေကို ဖယ်ရာမှာ သုံးပါတယ်။ ဖယ်ချင်တဲ့ စာလုံးတွေကိုလည်း ကိုယ်တိုင် သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.str.strip([to_strip])နမူနာ
pd.Series([" North ", "South\t"]).str.strip()-
စာလုံးအသေးကို အကြီး၊ စာလုံးအကြီးကို အသေး ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.swapcase() pandas.Series.str.titlemethodစာသားတစ်ခုစီကို Python ရဲ့ title case ပုံစံအတိုင်း ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.title()-
Mapping ထဲက သတ်မှတ်ချက်အတိုင်း စာလုံးတစ်လုံးချင်း အစားထိုးတာ ဒါမှမဟုတ် ဖယ်တာ လုပ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.translate(table) pandas.Series.str.uppermethodအကြီးအသေး ခွဲလို့ရတဲ့ စာလုံးတွေကို အကြီး ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.upper()pandas.Series.str.wrapmethodရှည်တဲ့ စာသားတွေကို သတ်မှတ်ထားတဲ့ အကျယ်အတိုင်း ကြောင်းခွဲပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.wrap(width[, expand_tabs, ...])pandas.Series.str.zfillmethodစာသားကို အနည်းဆုံးလိုတဲ့ အရှည်အထိ ဘယ်ဘက်မှာ သုညဖြည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.str.zfill(width)pandas.Series.struct.dtypesattribute-
Arrow struct အမျိုးအစား Series ထဲက field တစ်ခုစီကို DataFrame column တစ်ခုစီအဖြစ် ဖြန့်ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.struct.explode() -
Arrow struct column ထဲက field တစ်ခုကို အမည် သို့မဟုတ် နေရာနံပါတ်နဲ့ ရွေးထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.struct.field(name_or_index) pandas.Series.submethodလိုအပ်တဲ့အခါ label တွေကို အရင်ညှိပြီး သက်ဆိုင်ရာ တန်ဖိုးအတွဲတစ်ခုစီကို နုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.sub(other[, level, fill_value, axis])pandas.Series.summethodAxis၊ အုပ်စု သို့မဟုတ် window တစ်ခုစီအတွင်း တန်ဖိုးတွေကို ပေါင်းပါတယ်။ အနည်းဆုံး တန်ဖိုးဘယ်နှခု ရှိရမလဲဆိုတာ လက်ခံတဲ့နေရာမှာ min_count နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.sum(*[, axis, skipna, numeric_only, ...])pandas.Series.swaplevelmethodMultiIndex ထဲက level နှစ်ခုရဲ့ နေရာကို လဲပေးပါတယ်။
ခေါ်သုံးပုံ
Series.swaplevel([i, j, copy])pandas.Series.Tpropertypandas.Series.tailmethodအဆုံးက entry သို့မဟုတ် row n ခုကို ပြန်ပေးပါတယ်။ GroupBy မှာ အုပ်စုတစ်ခုစီကနေ အဆုံး n ခု ယူပါတယ်။
ခေါ်သုံးပုံ
Series.tail([n])pandas.Series.takemethodပေးထားတဲ့ နေရာနံပါတ်တွေအတိုင်း တန်ဖိုးတွေကို ရွေးယူပါတယ်။
ခေါ်သုံးပုံ
Series.take(indices[, axis])-
ဇယားရဲ့ စာသားပုံစံကို စက်ရဲ့ clipboard ထဲ ကူးပေးပါတယ်။
ခေါ်သုံးပုံ
Series.to_clipboard(*[, excel, sep]) pandas.Series.to_csvmethodDelimiter နဲ့ ခြားထားတဲ့ စာသားကို ရေးပေးတာ သို့မဟုတ် string အဖြစ် ပြန်ပေးတာ လုပ်ပါတယ်။ Row label တွေ မထည့်ချင်ရင် index=False သုံးပါ။
ခေါ်သုံးပုံ
Series.to_csv([path_or_buf, sep, na_rep, ...])pandas.Series.to_dictmethodIndex label ကို key၊ Series တန်ဖိုးကို value အဖြစ် သုံးပြီး Python mapping တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.to_dict(*[, into])pandas.Series.to_excelmethodဒေတာကို Excel sheet ထဲ ရေးပေးပါတယ်။ Workbook တစ်ခုထဲမှာ sheet အများကြီး ရေးမယ်ဆို ExcelWriter သုံးပါ။
ခေါ်သုံးပုံ
Series.to_excel(excel_writer, *[, ...])pandas.Series.to_framemethodDimension တစ်ခုရှိတဲ့ pandas object ကို DataFrame အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.to_frame([name])pandas.Series.to_hdfmethodpandas ဒေတာကို HDF5 store ထဲမှာ သတ်မှတ်ထားတဲ့ key အောက်မှာ သိမ်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.to_hdf(path_or_buf, *, key[, mode, ...])pandas.Series.to_jsonmethodဒေတာကို JSON အဖြစ် ပြောင်းပေးပါတယ်။ ဖွဲ့စည်းပုံကို orient နဲ့ ရွေးနိုင်ပြီး record တစ်ခုစီကို တစ်ကြောင်းစီ ရေးဖို့ lines ကို သုံးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.to_json([path_or_buf, orient, ...])pandas.Series.to_latexmethodဒေတာကို LaTeX ဇယားပုံစံနဲ့ ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.to_latex([buf, columns, header, ...])pandas.Series.to_listmethodတန်ဖိုးတွေကို Python list အဖြစ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.to_list()-
ဇယားကို Markdown စာသားအဖြစ် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.to_markdown([buf, mode, index, ...]) pandas.Series.to_numpymethodတန်ဖိုးတွေကို NumPy array အဖြစ် ပြောင်းပေးပါတယ်။ Column တွေရဲ့ dtype မတူရင် အားလုံးနဲ့ ကိုက်ညီတဲ့ dtype တစ်ခုကို သုံးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.to_numpy([dtype, copy, na_value])pandas.Series.to_periodmethodSeries တန်ဖိုးတွေကို မူလအတိုင်း ထားပြီး DatetimeIndex ကို PeriodIndex အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.to_period([freq, copy])pandas.Series.to_picklemethodနောက်မှ ပြန်ဖွင့်သုံးနိုင်ဖို့ Python object ကို pickle ဖိုင်အဖြစ် သိမ်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.to_pickle(path, *[, compression, ...])pandas.Series.to_sqlmethodဇယားဒေတာကို SQL table ထဲ ရေးပေးပါတယ်။ Table ရှိပြီးသားဆို ဘယ်လို ဆက်လုပ်မလဲ if_exists နဲ့ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.to_sql(name, con, *[, schema, ...])pandas.Series.to_stringmethodဖတ်ရှုလို့လွယ်တဲ့ စာသားအဖြစ် ပြန်ပေးပါတယ်။ Buffer ထည့်ပေးရင် အဲဒီထဲကို ရေးပေးပါတယ်။
ခေါ်သုံးပုံ
Series.to_string([buf, na_rep, ...])-
Series ရဲ့ PeriodIndex ကို period တစ်ခုစီရဲ့ အစ သို့မဟုတ် အဆုံးကို ကိုယ်စားပြုတဲ့ timestamp တွေအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.to_timestamp([freq, how, copy]) pandas.Series.to_xarraymethodLabel ပါတဲ့ pandas ဒေတာကို ကိုက်ညီတဲ့ xarray object အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Series.to_xarray()pandas.Series.transformmethodပေးထားတဲ့ operation ကို လုပ်ပြီး မူလဒေတာပုံစံနဲ့ ကိုက်တဲ့ ရလဒ်ထုတ်ပေးပါတယ်။ GroupBy မှာ ရလဒ်တွေကို မူလ row တွေနဲ့ ပြန်တွဲပေးပါတယ်။
ခေါ်သုံးပုံ
Series.transform(func[, axis])pandas.Series.truedivmethodကိုက်ညီတဲ့ တန်ဖိုးတစ်တွဲစီကို စားပြီး ဒဿမ ထည့်တွက်တဲ့ စားလဒ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.truediv(other[, level, fill_value, axis])pandas.Series.truncatemethodအစဉ်လိုက်စီပြီးသား axis မှာ သတ်မှတ်လိုက်တဲ့ အစနဲ့ အဆုံးကြားက label တွေကိုပဲ ထားပါတယ်။
ခေါ်သုံးပုံ
Series.truncate([before, after, axis, copy])pandas.Series.tz_convertmethodတကယ့်အချိန်တစ်မှတ်တည်းကို ထိန်းထားပြီး အခြား timezone ရဲ့ နာရီအတိုင်း ပြောင်းပြပေးပါတယ်။
ခေါ်သုံးပုံ
Series.tz_convert(tz[, axis, level, copy])-
Timezone မပါတဲ့ datetime တွေအတွက် timezone သတ်မှတ်ပေးပါတယ်။ Timezone ဖြုတ်တဲ့အခါ ဒေသနာရီပေါ်က အချိန်တန်ဖိုးအတိုင်း ထားပါတယ်။
ခေါ်သုံးပုံ
Series.tz_localize(tz[, axis, level, copy, ...]) pandas.Series.uniquemethodတန်ဖိုးတွေကို ပြန်မစီဘဲ ပထမဆုံးတွေ့တဲ့ အစဉ်အတိုင်း မထပ်တဲ့တန်ဖိုးတွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.unique()pandas.Series.unstackmethodRow index ရဲ့ level တစ်ဆင့်ကို column ဘက်ကို ရွှေ့ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.unstack([level, fill_value, sort])pandas.Series.updatemethodအခြား object ထဲက တန်ဖိုးရှိတဲ့နေရာတွေကို label အလိုက် ညှိပြီး မူလ object ကို ပြင်ပေးပါတယ်။
ခေါ်သုံးပုံ
Series.update(other)-
Value တစ်မျိုးစီ ပေါ်တဲ့အကြိမ်ရေကို ရေတွက်ပါတယ်။ Missing value ကိုပါ ရေတွက်ချင်ရင် dropna=False သုံးပါ။
ခေါ်သုံးပုံ
Series.value_counts([normalize, sort, ...])နမူနာ
orders["team"].value_counts(dropna=False) pandas.Series.valuespropertypandas.Series.varmethodတန်ဖိုးတွေက ပျမ်းမျှနားမှာ ဘယ်လောက်ပြန့်နေသလဲဆိုတာ variance နဲ့ တွက်ပါတယ်။ တွက်ချက်မှုမှာ သုံးမယ့် divisor ကို ddof နဲ့ ထိန်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.var(*[, axis, skipna, ddof, numeric_only])pandas.Series.wheremethodသတ်မှတ်ချက် True ဖြစ်တဲ့ နေရာက တန်ဖိုးတွေကို ထားပြီး ကျန်တဲ့နေရာတွေကို ထည့်ပေးထားတဲ့တန်ဖိုးနဲ့ အစားထိုးပါတယ်။
ခေါ်သုံးပုံ
Series.where(cond[, other, inplace, axis, level])နမူနာ
orders["units"].where(orders["units"].ge(5), other=0)pandas.Series.xsmethodLabel တစ်ခုနဲ့ ကိုက်ညီတဲ့ ဒေတာအပိုင်းကို ရွေးပေးပါတယ်။ MultiIndex ရဲ့ level တစ်ဆင့်ကိုလည်း သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Series.xs(key[, axis, level, drop_level])
GroupBy (128)
pandas.api.indexers.VariableOffsetWindowIndexerclass-
တစ်ခုချင်း လည်ပတ်ယူလို့ရအောင် လုပ်ပေးပါတယ်။ DataFrame မှာ column တွေ၊ GroupBy မှာတော့ အုပ်စု key နဲ့ အုပ်စု object ကို တွဲပြီး ရပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.__iter__() -
ပေးထားတဲ့ operation အမည် သို့မဟုတ် callable နဲ့ တန်ဖိုးတွေကို စုတွက်ပါတယ်။ ရလဒ်ပုံစံက သုံးတဲ့ operation နဲ့ ဒေတာပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.agg([func, engine, ...]) -
agg နဲ့ ခေါ်သုံးပုံတူပြီး operation တစ်ခု သို့မဟုတ် အများကြီးနဲ့ တန်ဖိုးတွေ စုတွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.aggregate([func, engine, ...]) -
ရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲက တန်ဖိုးအားလုံး True ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.all([skipna]) -
ရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲမှာ True ဖြစ်တဲ့ တန်ဖိုး အနည်းဆုံးတစ်ခု ပါမပါ စစ်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.any([skipna]) -
အုပ်စုတစ်ခုစီရဲ့ DataFrame ကို function ဆီ ပေးပြီး ရလဒ်တွေကို စုပါတယ်။ Function က တန်ဖိုးတစ်ခု၊ Series သို့မဟုတ် DataFrame ပြန်ပေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.apply(func, *args[, ...]) -
ပျောက်နေတဲ့နေရာကို ရွေးထားတဲ့ဦးတည်ချက်မှာ နောက်ထပ်တွေ့တဲ့ တန်ဖိုးနဲ့ ဖြည့်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.bfill([limit]) -
အလယ်တန်ဖိုး၊ ဒေတာပျံ့နှံ့ပုံနဲ့ ဖြစ်နိုင်တဲ့ outlier တွေကို ယှဉ်ကြည့်ဖို့ box plot ဆွဲပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.boxplot([subplots, column, ...]) -
ဂဏန်းဒေတာတွေကြား correlation coefficient တွက်ပေးပါတယ်။ DataFrame မှာ column တစ်ခုစီနဲ့ တခြား column တွေကြား ဆက်နွှယ်မှုကို ဇယားနဲ့ ပြန်ရနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.corr([method, min_periods, ...]) -
အုပ်စုတစ်ခုစီရဲ့ column တွေနဲ့ တခြား object ထဲက ကိုက်ညီတဲ့ ဒေတာကြား correlation တွက်ပါတယ်။ ဒီ method ကို pandas 3.1.1 မှာ နောက်ပိုင်းဖယ်ရှားဖို့ သတ်မှတ်ထားပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.corrwith(other[, drop, ...]) -
ရွေးထားတဲ့ axis၊ အုပ်စု သို့မဟုတ် window ထဲမှာ တန်ဖိုးရှိတဲ့ entry တွေကို ရေတွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.count() -
ကိုက်ညီရာ တန်ဖိုးစုံတွဲတွေကို သုံးပြီး ဂဏန်းဒေတာနှစ်ခု အတူတကွ ပြောင်းလဲပုံ (covariance) ကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.cov([min_periods, ddof, ...]) -
အုပ်စုတစ်ခုစီထဲမှာ row တွေကို တွေ့တဲ့အစဉ်အတိုင်း 0 ကနေ စပြီး နံပါတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.cumcount([ascending]) -
နေရာတစ်ခုစီအထိ တွေ့ထားသမျှထဲက အကြီးဆုံးတန်ဖိုးကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.cummax([numeric_only, skipna]) -
နေရာတစ်ခုစီအထိ တွေ့ထားသမျှထဲက အငယ်ဆုံးတန်ဖိုးကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.cummin([numeric_only, skipna]) -
တန်ဖိုးတွေကို အစဉ်လိုက် ဆက်မြှောက်ပြီး နေရာတစ်ခုစီအထိ ရထားတဲ့ မြှောက်လဒ်ကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.cumprod([numeric_only, skipna]) -
တန်ဖိုးတွေကို အစဉ်လိုက် ဆက်ပေါင်းပြီး နေရာတစ်ခုစီအထိ ရထားတဲ့ စုစုပေါင်းကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.cumsum([numeric_only, skipna]) -
dtype အလိုက် သင့်တော်တဲ့ စာရင်းကိန်းတွေကို ထုတ်ပေးပါတယ်။ ဥပမာ ဂဏန်းတွေအတွက် quartile၊ category တွေအတွက် အကြိမ်ရေကို တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.describe([percentiles, ...]) -
လက်ရှိတန်ဖိုးထဲက ရှေ့ကတန်ဖိုးကို နုတ်ပါတယ်။ ဘယ်နှနေရာ အကွာကတန်ဖိုးနဲ့ တွက်မလဲဆိုတာ periods နဲ့ ပြောင်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.diff([periods]) -
နောက်ဆုံးရတဲ့ တန်ဖိုးတွေကို ပိုအလေးပေးပြီး တွက်နိုင်ဖို့ exponentially weighted window တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.ewm([com, span, halflife, ...]) -
အစကနေ လက်ရှိနေရာအထိ ပါဝင်တဲ့ window ကို တစ်နေရာချင်း တိုးချဲ့ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.expanding([min_periods, method]) -
ပျောက်နေတဲ့နေရာကို ရွေးထားတဲ့ ဦးတည်ချက်မှာ အရင်ဆုံးတွေ့ထားတဲ့ နောက်ဆုံးတန်ဖိုးနဲ့ ဖြည့်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.ffill([limit]) -
DataFrame သို့မဟုတ် Series မှာ label နဲ့ ရွေးပါတယ်။ GroupBy မှာတော့ စစ်ဆေးတဲ့ function က True ပြန်ပေးတဲ့ အုပ်စုတွေကို ရွေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.filter(func[, dropna]) -
အုပ်စု သို့မဟုတ် အချိန်ပိုင်း တစ်ခုစီရဲ့ ပထမတန်ဖိုးကို ယူပါတယ်။ ခွင့်ပြုတဲ့နေရာမှာ ပျောက်နေတဲ့တန်ဖိုးတွေကို ပုံမှန်အားဖြင့် ကျော်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.first([numeric_only, ...]) -
ပေးထားတဲ့ အုပ်စု key နဲ့ ကိုက်ညီတဲ့ မူလဒေတာတွေကို ပြန်ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.get_group(name) pandas.api.typing.DataFrameGroupBy.groupsproperty-
အစက row သို့မဟုတ် တန်ဖိုး n ခုကို ပြန်ပေးပါတယ်။ GroupBy မှာ အုပ်စုတစ်ခုစီကနေ အစ n ခု ယူပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.head([n]) -
ဂဏန်းတန်ဖိုးတွေ ဘယ်အပိုင်းအခြားမှာ ဘယ်လောက်ရှိလဲ မြင်ရဖို့ histogram ဆွဲပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.hist([column, by, grid, ...]) -
ရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲမှာ အကြီးဆုံးတန်ဖိုးကို ပထမဆုံးတွေ့ရတဲ့ label ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.idxmax([skipna, numeric_only]) -
ရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲမှာ အငယ်ဆုံးတန်ဖိုးကို ပထမဆုံးတွေ့ရတဲ့ label ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.idxmin([skipna, numeric_only]) pandas.api.typing.DataFrameGroupBy.indicesproperty-
ဒေတာဖြန့်ကျက်ပုံမှာ အစွန်းဘက်တန်ဖိုးတွေ ဘယ်လောက်များလဲ သိနိုင်တဲ့ excess kurtosis ကို ခန့်မှန်းပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.kurt([skipna, numeric_only]) -
အုပ်စု သို့မဟုတ် အချိန်ပိုင်းတစ်ခုစီရဲ့ နောက်ဆုံးတန်ဖိုးကို ယူပါတယ်။ ခွင့်ပြုတဲ့နေရာမှာ ပျောက်နေတဲ့တန်ဖိုးတွေကို ပုံမှန်အားဖြင့် ကျော်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.last([numeric_only, ...]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အကြီးဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.max([numeric_only, ...]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေရဲ့ ပျမ်းမျှကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.mean([numeric_only, ...]) -
တန်ဖိုးတွေကို စီလိုက်ရင် အလယ်မှာရှိတဲ့ တန်ဖိုးကို ယူပါတယ်။ အလယ်မှာ နှစ်ခုရှိရင် နှစ်ခုရဲ့ ပျမ်းမျှကို ယူပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.median([numeric_only, skipna]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အငယ်ဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.min([numeric_only, ...]) -
အုပ်စုတစ်ခုစီကို နံပါတ်တစ်ခုပေးပြီး row တစ်ခုစီအတွက် သက်ဆိုင်ရာ အုပ်စုနံပါတ်ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.ngroup([ascending]) pandas.api.typing.DataFrameGroupBy.nthproperty-
မထပ်တဲ့ တန်ဖိုး ဘယ်နှမျိုးရှိလဲ ရေတွက်ပါတယ်။ လက်ခံတဲ့နေရာမှာ dropna=False ပေးရင် တန်ဖိုးပျောက်တာကိုလည်း တစ်မျိုးအဖြစ် ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.nunique([dropna]) -
အုပ်စု သို့မဟုတ် အချိန်ပိုင်း တစ်ခုစီရဲ့ အဖွင့်၊ အမြင့်ဆုံး၊ အနိမ့်ဆုံးနဲ့ အပိတ်တန်ဖိုးတွေကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.ohlc() -
အရင်တန်ဖိုးနဲ့ ယှဉ်ပြီး ဘယ်အချိုး ပြောင်းလဲသလဲ တွက်ပါတယ်။ ရာခိုင်နှုန်းလိုရင် ရလဒ်ကို 100 နဲ့ မြှောက်ပါ။
ခေါ်သုံးပုံ
DataFrameGroupBy.pct_change([periods, ...]) -
Method chain ကို မဖြတ်ဘဲ လက်ရှိ object ကို function တစ်ခုဆီ ပေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.pipe(func, *args, **kwargs) pandas.api.typing.DataFrameGroupBy.plotproperty-
ရွေးထားတဲ့ axis၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေကို မြှောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.prod([numeric_only, ...]) -
တန်ဖိုးတွေကို အစဉ်လိုက်စီလိုက်တဲ့အခါ သတ်မှတ်ထားတဲ့ အချိုးနေရာမှာ ရှိမယ့်တန်ဖိုး (quantile) ကို ခန့်မှန်းပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.quantile([q, ...]) -
တန်ဖိုးတွေကို အစဉ်လိုက် နံပါတ်ပေးပြီး တန်ဖိုးတူတဲ့အခါ ဘယ်လိုအဆင့် သတ်မှတ်မလဲ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.rank([method, ascending, ...]) -
Datetime axis ကို အချိန်ပိုင်းတွေ ခွဲပြီး အပိုင်းတစ်ခုစီမှာ စုတွက်တာ၊ ဖြည့်တာ သို့မဟုတ် အချိန်ပိုစိပ်အောင် ပြောင်းတာ လုပ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.resample(rule[, closed, ...]) -
တန်ဖိုးအရေအတွက်၊ အချိန်အပိုင်းအခြား သို့မဟုတ် ကိုယ်ပိုင် indexer နဲ့ သတ်မှတ်ထားတဲ့ ရွေ့လျား window တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.rolling(window[, ...]) -
Row၊ entry သို့မဟုတ် column တွေကို ကျပန်းရွေးပါတယ်။ ထပ်စမ်းတိုင်း တူတဲ့ရလဒ်လိုရင် random_state ပေးပါ။
ခေါ်သုံးပုံ
DataFrameGroupBy.sample([n, frac, replace, ...]) -
ရွေးထားတဲ့ ဒေတာအတွက် ပျမ်းမျှရဲ့ standard error ကို တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.sem([ddof, numeric_only, ...]) -
တန်ဖိုးတွေကို သတ်မှတ်ထားတဲ့ နေရာအရေအတွက်အတိုင်း ရွှေ့ပါတယ်။ အချိန် frequency ပေးရင် label တွေကို ရွှေ့ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.shift([periods, freq, ...]) -
အုပ်စု သို့မဟုတ် အချိန်ပိုင်းတစ်ခုစီရဲ့ row အရေအတွက်ကို တွက်ပါတယ်။ တန်ဖိုးပျောက်နေတဲ့ row တွေကိုပါ ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.size() -
ဂဏန်းဒေတာ ဖြန့်ကျက်ပုံက ဘယ်လောက် မညီမျှလဲဆိုတာ skewness နဲ့ တွက်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.skew([skipna, numeric_only]) -
Variance ရဲ့ square root အဖြစ် standard deviation ကို တွက်ပါတယ်။ ဘယ် divisor သုံးမလဲဆိုတာ ddof နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.std([ddof, engine, ...]) -
Axis၊ အုပ်စု သို့မဟုတ် window တစ်ခုစီအတွင်း တန်ဖိုးတွေကို ပေါင်းပါတယ်။ အနည်းဆုံး တန်ဖိုးဘယ်နှခု ရှိရမလဲဆိုတာ လက်ခံတဲ့နေရာမှာ min_count နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.sum([numeric_only, ...]) -
အဆုံးက entry သို့မဟုတ် row n ခုကို ပြန်ပေးပါတယ်။ GroupBy မှာ အုပ်စုတစ်ခုစီကနေ အဆုံး n ခု ယူပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.tail([n]) -
ပေးထားတဲ့ နေရာနံပါတ်တွေအတိုင်း တန်ဖိုးတွေကို ရွေးယူပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.take(indices, **kwargs) -
အုပ်စုအလိုက် တွက်ပြီး မူလ DataFrame ရဲ့ row တွေနဲ့ ကိုက်ညီတဲ့ ရလဒ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.transform([func, engine, ...]) -
တန်ဖိုး သို့မဟုတ် row ပေါင်းစပ်ပုံ တစ်မျိုးစီ ဘယ်နှကြိမ်ပါလဲ ရေတွက်ပါတယ်။ အချိုးလိုရင် normalize၊ တန်ဖိုးပျောက်တာ ထည့်လိုရင် dropna=False သုံးပါ။
ခေါ်သုံးပုံ
DataFrameGroupBy.value_counts([subset, ...]) -
တန်ဖိုးတွေက ပျမ်းမျှနားမှာ ဘယ်လောက်ပြန့်နေသလဲဆိုတာ variance နဲ့ တွက်ပါတယ်။ တွက်ချက်မှုမှာ သုံးမယ့် divisor ကို ddof နဲ့ ထိန်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
DataFrameGroupBy.var([ddof, engine, ...]) -
တစ်ခုချင်း လည်ပတ်ယူလို့ရအောင် လုပ်ပေးပါတယ်။ DataFrame မှာ column တွေ၊ GroupBy မှာတော့ အုပ်စု key နဲ့ အုပ်စု object ကို တွဲပြီး ရပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.__iter__() -
Group တစ်ခုစီကို sum၊ mean စတဲ့ operation တစ်ခု သို့မဟုတ် အများကြီးနဲ့ အနှစ်ချုပ်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.agg([func, engine, engine_kwargs])နမူနာ
orders.groupby("team")["units"].agg(["size", "count", "sum"]) -
agg နဲ့ ခေါ်သုံးပုံတူပြီး operation တစ်ခု သို့မဟုတ် အများကြီးနဲ့ တန်ဖိုးတွေ စုတွက်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.aggregate([func, engine, ...]) -
ရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲက တန်ဖိုးအားလုံး True ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.all([skipna]) -
ရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲမှာ True ဖြစ်တဲ့ တန်ဖိုး အနည်းဆုံးတစ်ခု ပါမပါ စစ်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.any([skipna]) -
အုပ်စုတစ်ခုစီရဲ့ Series ကို function ဆီ ပေးပြီး ရလဒ်တွေကို စုပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.apply(func, *args, **kwargs) -
ပျောက်နေတဲ့နေရာကို ရွေးထားတဲ့ဦးတည်ချက်မှာ နောက်ထပ်တွေ့တဲ့ တန်ဖိုးနဲ့ ဖြည့်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.bfill([limit]) -
ဂဏန်းဒေတာတွေကြား correlation coefficient တွက်ပေးပါတယ်။ DataFrame မှာ column တစ်ခုစီနဲ့ တခြား column တွေကြား ဆက်နွှယ်မှုကို ဇယားနဲ့ ပြန်ရနိုင်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.corr(other[, method, min_periods]) -
Group တစ်ခုစီမှာ missing မဖြစ်တဲ့ value ဘယ်နှစ်ခုရှိလဲ ရေတွက်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.count()နမူနာ
orders.groupby("team")["units"].count() -
ကိုက်ညီရာ တန်ဖိုးစုံတွဲတွေကို သုံးပြီး ဂဏန်းဒေတာနှစ်ခု အတူတကွ ပြောင်းလဲပုံ (covariance) ကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.cov(other[, min_periods, ddof]) -
အုပ်စုတစ်ခုစီထဲမှာ row တွေကို တွေ့တဲ့အစဉ်အတိုင်း 0 ကနေ စပြီး နံပါတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.cumcount([ascending])နမူနာ
orders.groupby("team").cumcount() -
နေရာတစ်ခုစီအထိ တွေ့ထားသမျှထဲက အကြီးဆုံးတန်ဖိုးကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.cummax([numeric_only, skipna]) -
နေရာတစ်ခုစီအထိ တွေ့ထားသမျှထဲက အငယ်ဆုံးတန်ဖိုးကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.cummin([numeric_only, skipna]) -
တန်ဖိုးတွေကို အစဉ်လိုက် ဆက်မြှောက်ပြီး နေရာတစ်ခုစီအထိ ရထားတဲ့ မြှောက်လဒ်ကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.cumprod([numeric_only, skipna]) -
တန်ဖိုးတွေကို အစဉ်လိုက် ဆက်ပေါင်းပြီး နေရာတစ်ခုစီအထိ ရထားတဲ့ စုစုပေါင်းကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.cumsum([numeric_only, skipna]) -
dtype အလိုက် သင့်တော်တဲ့ စာရင်းကိန်းတွေကို ထုတ်ပေးပါတယ်။ ဥပမာ ဂဏန်းတွေအတွက် quartile၊ category တွေအတွက် အကြိမ်ရေကို တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.describe([percentiles, ...]) -
လက်ရှိတန်ဖိုးထဲက ရှေ့ကတန်ဖိုးကို နုတ်ပါတယ်။ ဘယ်နှနေရာ အကွာကတန်ဖိုးနဲ့ တွက်မလဲဆိုတာ periods နဲ့ ပြောင်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.diff([periods]) -
နောက်ဆုံးရတဲ့ တန်ဖိုးတွေကို ပိုအလေးပေးပြီး တွက်နိုင်ဖို့ exponentially weighted window တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.ewm([com, span, halflife, ...]) -
အစကနေ လက်ရှိနေရာအထိ ပါဝင်တဲ့ window ကို တစ်နေရာချင်း တိုးချဲ့ပေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.expanding([min_periods, method]) -
ပျောက်နေတဲ့နေရာကို ရွေးထားတဲ့ ဦးတည်ချက်မှာ အရင်ဆုံးတွေ့ထားတဲ့ နောက်ဆုံးတန်ဖိုးနဲ့ ဖြည့်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.ffill([limit]) -
DataFrame သို့မဟုတ် Series မှာ label နဲ့ ရွေးပါတယ်။ GroupBy မှာတော့ စစ်ဆေးတဲ့ function က True ပြန်ပေးတဲ့ အုပ်စုတွေကို ရွေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.filter(func[, dropna]) -
အုပ်စု သို့မဟုတ် အချိန်ပိုင်း တစ်ခုစီရဲ့ ပထမတန်ဖိုးကို ယူပါတယ်။ ခွင့်ပြုတဲ့နေရာမှာ ပျောက်နေတဲ့တန်ဖိုးတွေကို ပုံမှန်အားဖြင့် ကျော်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.first([numeric_only, ...]) -
ပေးထားတဲ့ အုပ်စု key နဲ့ ကိုက်ညီတဲ့ မူလဒေတာတွေကို ပြန်ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.get_group(name)နမူနာ
orders.groupby("team")["units"].get_group("North") pandas.api.typing.SeriesGroupBy.groupsproperty-
အစက row သို့မဟုတ် တန်ဖိုး n ခုကို ပြန်ပေးပါတယ်။ GroupBy မှာ အုပ်စုတစ်ခုစီကနေ အစ n ခု ယူပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.head([n]) -
ဂဏန်းတန်ဖိုးတွေ ဘယ်အပိုင်းအခြားမှာ ဘယ်လောက်ရှိလဲ မြင်ရဖို့ histogram ဆွဲပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.hist([by, ax, grid, ...]) -
ရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲမှာ အကြီးဆုံးတန်ဖိုးကို ပထမဆုံးတွေ့ရတဲ့ label ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.idxmax([skipna]) -
ရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲမှာ အငယ်ဆုံးတန်ဖိုးကို ပထမဆုံးတွေ့ရတဲ့ label ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.idxmin([skipna]) pandas.api.typing.SeriesGroupBy.indicespropertypandas.api.typing.SeriesGroupBy.is_monotonic_decreasingpropertypandas.api.typing.SeriesGroupBy.is_monotonic_increasingproperty-
ဒေတာဖြန့်ကျက်ပုံမှာ အစွန်းဘက်တန်ဖိုးတွေ ဘယ်လောက်များလဲ သိနိုင်တဲ့ excess kurtosis ကို ခန့်မှန်းပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.kurt([skipna, numeric_only]) -
အုပ်စု သို့မဟုတ် အချိန်ပိုင်းတစ်ခုစီရဲ့ နောက်ဆုံးတန်ဖိုးကို ယူပါတယ်။ ခွင့်ပြုတဲ့နေရာမှာ ပျောက်နေတဲ့တန်ဖိုးတွေကို ပုံမှန်အားဖြင့် ကျော်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.last([numeric_only, ...]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အကြီးဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.max([numeric_only, min_count, ...]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေရဲ့ ပျမ်းမျှကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.mean([numeric_only, skipna, ...]) -
တန်ဖိုးတွေကို စီလိုက်ရင် အလယ်မှာရှိတဲ့ တန်ဖိုးကို ယူပါတယ်။ အလယ်မှာ နှစ်ခုရှိရင် နှစ်ခုရဲ့ ပျမ်းမျှကို ယူပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.median([numeric_only, skipna]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အငယ်ဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.min([numeric_only, min_count, ...]) -
အုပ်စုတစ်ခုစီကို နံပါတ်တစ်ခုပေးပြီး row တစ်ခုစီအတွက် သက်ဆိုင်ရာ အုပ်စုနံပါတ်ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.ngroup([ascending]) -
အကြီးဆုံး တန်ဖိုး n ခုကို ယူပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.nlargest([n, keep]) -
အငယ်ဆုံး တန်ဖိုး n ခုကို ယူပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.nsmallest([n, keep]) pandas.api.typing.SeriesGroupBy.nthproperty-
မထပ်တဲ့ တန်ဖိုး ဘယ်နှမျိုးရှိလဲ ရေတွက်ပါတယ်။ လက်ခံတဲ့နေရာမှာ dropna=False ပေးရင် တန်ဖိုးပျောက်တာကိုလည်း တစ်မျိုးအဖြစ် ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.nunique([dropna]) -
အုပ်စု သို့မဟုတ် အချိန်ပိုင်း တစ်ခုစီရဲ့ အဖွင့်၊ အမြင့်ဆုံး၊ အနိမ့်ဆုံးနဲ့ အပိတ်တန်ဖိုးတွေကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.ohlc() -
အရင်တန်ဖိုးနဲ့ ယှဉ်ပြီး ဘယ်အချိုး ပြောင်းလဲသလဲ တွက်ပါတယ်။ ရာခိုင်နှုန်းလိုရင် ရလဒ်ကို 100 နဲ့ မြှောက်ပါ။
ခေါ်သုံးပုံ
SeriesGroupBy.pct_change([periods, ...]) -
Method chain ကို မဖြတ်ဘဲ လက်ရှိ object ကို function တစ်ခုဆီ ပေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.pipe(func, *args, **kwargs) pandas.api.typing.SeriesGroupBy.plotproperty-
ရွေးထားတဲ့ axis၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေကို မြှောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.prod([numeric_only, ...]) -
တန်ဖိုးတွေကို အစဉ်လိုက်စီလိုက်တဲ့အခါ သတ်မှတ်ထားတဲ့ အချိုးနေရာမှာ ရှိမယ့်တန်ဖိုး (quantile) ကို ခန့်မှန်းပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.quantile([q, interpolation, ...]) -
တန်ဖိုးတွေကို အစဉ်လိုက် နံပါတ်ပေးပြီး တန်ဖိုးတူတဲ့အခါ ဘယ်လိုအဆင့် သတ်မှတ်မလဲ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.rank([method, ascending, ...]) -
Datetime axis ကို အချိန်ပိုင်းတွေ ခွဲပြီး အပိုင်းတစ်ခုစီမှာ စုတွက်တာ၊ ဖြည့်တာ သို့မဟုတ် အချိန်ပိုစိပ်အောင် ပြောင်းတာ လုပ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.resample(rule[, closed, ...]) -
တန်ဖိုးအရေအတွက်၊ အချိန်အပိုင်းအခြား သို့မဟုတ် ကိုယ်ပိုင် indexer နဲ့ သတ်မှတ်ထားတဲ့ ရွေ့လျား window တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.rolling(window[, min_periods, ...]) -
Row၊ entry သို့မဟုတ် column တွေကို ကျပန်းရွေးပါတယ်။ ထပ်စမ်းတိုင်း တူတဲ့ရလဒ်လိုရင် random_state ပေးပါ။
ခေါ်သုံးပုံ
SeriesGroupBy.sample([n, frac, replace, ...]) -
ရွေးထားတဲ့ ဒေတာအတွက် ပျမ်းမျှရဲ့ standard error ကို တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.sem([ddof, numeric_only, skipna]) -
တန်ဖိုးတွေကို သတ်မှတ်ထားတဲ့ နေရာအရေအတွက်အတိုင်း ရွှေ့ပါတယ်။ အချိန် frequency ပေးရင် label တွေကို ရွှေ့ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.shift([periods, freq, ...]) -
Group တစ်ခုစီမှာ row ဘယ်နှစ်ခုရှိလဲ ရေတွက်ပါတယ်။ Value missing ဖြစ်နေတဲ့ row တွေလည်း ပါပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.size()နမူနာ
orders.groupby("team")["units"].size() -
ဂဏန်းဒေတာ ဖြန့်ကျက်ပုံက ဘယ်လောက် မညီမျှလဲဆိုတာ skewness နဲ့ တွက်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.skew([skipna, numeric_only]) -
Variance ရဲ့ square root အဖြစ် standard deviation ကို တွက်ပါတယ်။ ဘယ် divisor သုံးမလဲဆိုတာ ddof နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.std([ddof, engine, ...]) -
Axis၊ အုပ်စု သို့မဟုတ် window တစ်ခုစီအတွင်း တန်ဖိုးတွေကို ပေါင်းပါတယ်။ အနည်းဆုံး တန်ဖိုးဘယ်နှခု ရှိရမလဲဆိုတာ လက်ခံတဲ့နေရာမှာ min_count နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.sum([numeric_only, min_count, ...]) -
အဆုံးက entry သို့မဟုတ် row n ခုကို ပြန်ပေးပါတယ်။ GroupBy မှာ အုပ်စုတစ်ခုစီကနေ အဆုံး n ခု ယူပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.tail([n]) -
ပေးထားတဲ့ နေရာနံပါတ်တွေအတိုင်း တန်ဖိုးတွေကို ရွေးယူပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.take(indices, **kwargs) -
Group အလိုက် တွက်ထားတဲ့ ရလဒ်ကို မူလ row တွေနဲ့ အစဉ်တူအောင် ပြန်ချိတ်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.transform(func, *args[, ...])နမူနာ
orders.groupby("team")["units"].transform("mean") -
တန်ဖိုးတွေကို ပြန်မစီဘဲ ပထမဆုံးတွေ့တဲ့ အစဉ်အတိုင်း မထပ်တဲ့တန်ဖိုးတွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.unique() -
တန်ဖိုး သို့မဟုတ် row ပေါင်းစပ်ပုံ တစ်မျိုးစီ ဘယ်နှကြိမ်ပါလဲ ရေတွက်ပါတယ်။ အချိုးလိုရင် normalize၊ တန်ဖိုးပျောက်တာ ထည့်လိုရင် dropna=False သုံးပါ။
ခေါ်သုံးပုံ
SeriesGroupBy.value_counts([normalize, ...]) -
တန်ဖိုးတွေက ပျမ်းမျှနားမှာ ဘယ်လောက်ပြန့်နေသလဲဆိုတာ variance နဲ့ တွက်ပါတယ်။ တွက်ချက်မှုမှာ သုံးမယ့် divisor ကို ddof နဲ့ ထိန်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
SeriesGroupBy.var([ddof, engine, ...]) pandas.Grouperclasspandas.NamedAggclass
Index Objects (253)
pandas.api.types.is_scalarfunctionပေးထားတဲ့ object ကို array တစ်ခုအစား တန်ဖိုးတစ်ခုတည်း (scalar) အဖြစ် သုံးလို့ရမရ စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_scalar(val)pandas.Categoricalclasspandas.CategoricalIndexclass-
ရှိပြီးသား တန်ဖိုးတွေကို အတူတူထားပြီး လက်ခံမယ့် category စာရင်းမှာ အသစ်ထည့်ပါတယ်။
ခေါ်သုံးပုံ
CategoricalIndex.add_categories(new_categories) -
Index တန်ဖိုးတွေကို အစဉ်အတိုင်း ဆက်ပေးပါတယ်။ ဝင်လာတဲ့ index တွေ ကိုက်ညီရင် categorical dtype ကို ဆက်ထိန်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
CategoricalIndex.append(other) -
Category တွေကို နှိုင်းယှဉ်တဲ့အခါ သတ်မှတ်ထားတဲ့ အစဉ် သုံးနိုင်အောင် ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
CategoricalIndex.as_ordered() -
Category အမည်တွေကို အတူတူထားပြီး သတ်မှတ်ထားတဲ့ အစဉ်ကို ဖယ်ပါတယ်။
ခေါ်သုံးပုံ
CategoricalIndex.as_unordered() pandas.CategoricalIndex.categoriespropertypandas.CategoricalIndex.codesproperty-
Object နှစ်ခုရဲ့ အရွယ်အစားနဲ့ တန်ဖိုးတွေ တူမတူ စစ်ပါတယ်။ နှစ်ခုလုံးမှာ တန်ဖိုးပျောက်တဲ့နေရာ တူရင် အဲဒီနေရာကို တူတယ်လို့ ယူပါတယ်။
ခေါ်သုံးပုံ
CategoricalIndex.equals(other) -
တန်ဖိုးတစ်ခုစီကို mapping သို့မဟုတ် function သုံးပြီး ပြောင်းပေးပါတယ်။ ဘာကို လက်ခံလဲဆိုတာ ခေါ်တဲ့ object ပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
CategoricalIndex.map(mapper[, na_action]) pandas.CategoricalIndex.orderedproperty-
ရွေးထားတဲ့ category တွေကို ဖယ်ပြီး အဲဒီ category သုံးထားတဲ့ နေရာတွေကို ပျောက်နေတဲ့တန်ဖိုးအဖြစ် ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
CategoricalIndex.remove_categories(removals) -
ဒေတာထဲမှာ အသုံးမပြုထားတဲ့ category တွေကို စာရင်းထဲက ဖယ်ပါတယ်။
ခေါ်သုံးပုံ
CategoricalIndex.remove_unused_categories() -
တန်ဖိုးတစ်ခုစီရဲ့ category ကို အတူတူထားပြီး category အမည်တွေကို ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
CategoricalIndex.rename_categories(...) -
တန်ဖိုးတစ်ခုစီရဲ့ category ကို အတူတူထားပြီး category အစဉ်ကို ပြန်သတ်မှတ်ပါတယ်။
ခေါ်သုံးပုံ
CategoricalIndex.reorder_categories(...[, ...]) -
လက်ခံမယ့် category စာရင်းကို ပြောင်းပါတယ်။ စာရင်းအသစ်ထဲ မပါတဲ့ တန်ဖိုးတွေက missing value ဖြစ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
CategoricalIndex.set_categories(new_categories) pandas.DatetimeIndexclass-
အချိန်တန်ဖိုး သိမ်းထားတဲ့ ယူနစ်ကို ပြောင်းပေးပါတယ်။ တိကျမှုနဲ့ round လုပ်ပုံက ခွင့်ပြုထားတဲ့ စည်းမျဉ်းပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.as_unit(unit) pandas.DatetimeIndex.asi8property-
Timestamp သို့မဟုတ် ကြာချိန်ကို သတ်မှတ်ထားတဲ့ frequency ရဲ့ နောက်အမှတ်အထိ ပင့်ပေးပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.ceil(freq[, ambiguous, ...]) pandas.DatetimeIndex.datepropertypandas.DatetimeIndex.dayproperty-
ရက်သတ္တပတ်ထဲက နေ့အမည်ကို ပြန်ပေးပါတယ်။ ပြမယ့် ဘာသာစကားကို locale နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.day_name([locale]) pandas.DatetimeIndex.day_of_weekpropertypandas.DatetimeIndex.day_of_yearpropertypandas.DatetimeIndex.dayofweekpropertypandas.DatetimeIndex.dayofyearproperty-
Timestamp သို့မဟုတ် ကြာချိန်ကို သတ်မှတ်ထားတဲ့ frequency ရဲ့ ရှေ့အမှတ်အထိ ချပေးပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.floor(freq[, ambiguous, ...]) pandas.DatetimeIndex.freqpropertypandas.DatetimeIndex.freqstrpropertypandas.DatetimeIndex.hourproperty-
DatetimeIndex ထဲမှာ သတ်မှတ်လိုက်တဲ့ နာရီအချိန်နဲ့ တူတဲ့ entry တွေရဲ့ နေရာနံပါတ်ကို ရှာပေးပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.indexer_at_time(time[, asof]) -
DatetimeIndex ထဲမှာ နာရီအချိန်နှစ်ခုကြား ကျတဲ့ entry တွေရဲ့ နေရာနံပါတ်တွေကို ရှာပေးပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.indexer_between_time(...[, ...]) pandas.DatetimeIndex.inferred_freqattributepandas.DatetimeIndex.is_leap_yearpropertypandas.DatetimeIndex.is_month_endpropertypandas.DatetimeIndex.is_month_startpropertypandas.DatetimeIndex.is_quarter_endpropertypandas.DatetimeIndex.is_quarter_startpropertypandas.DatetimeIndex.is_year_endpropertypandas.DatetimeIndex.is_year_startproperty-
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေရဲ့ ပျမ်းမျှကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.mean(*[, skipna, axis]) pandas.DatetimeIndex.microsecondpropertypandas.DatetimeIndex.minutepropertypandas.DatetimeIndex.monthproperty-
လအမည်ကို ပြန်ပေးပါတယ်။ ပြမယ့် ဘာသာစကားကို locale နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.month_name([locale]) pandas.DatetimeIndex.nanosecondproperty-
ရက်စွဲနဲ့ timezone ကို ထိန်းထားပြီး နာရီအချိန်ကို ညသန်းခေါင်အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.normalize() pandas.DatetimeIndex.quarterproperty-
ကိန်းဂဏန်းကို သတ်မှတ်ထားတဲ့ ဒဿမနေရာအတိုင်း round လုပ်ပေးပါတယ်။ ရက်စွဲနဲ့ အချိန်တန်ဖိုးတွေအတွက် frequency သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.round(freq[, ambiguous, ...]) pandas.DatetimeIndex.secondproperty-
Timestamp တစ်ခုစီကို သတ်မှတ်လိုက်တဲ့ frequency ထဲက အနီးဆုံးအမှတ်သို့ round လုပ်ပေးပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.snap([freq]) pandas.DatetimeIndex.stdmethodVariance ရဲ့ square root အဖြစ် standard deviation ကို တွက်ပါတယ်။ ဘယ် divisor သုံးမလဲဆိုတာ ddof နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.std([axis, dtype, out, ddof, ...])-
အချိန်တန်ဖိုးကို %Y-%m-%d လို strftime သတ်မှတ်ချက်တွေနဲ့ စာသားအဖြစ် ပြောင်းပေးပါတယ်။ pandas 3.1.1 မှာ Period.strftime ကို deprecated အဖြစ် သတ်မှတ်ထားပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.strftime(date_format) pandas.DatetimeIndex.timepropertypandas.DatetimeIndex.timetzproperty-
Dimension တစ်ခုရှိတဲ့ pandas object ကို DataFrame အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.to_frame([index, name]) -
ရက်စွဲ သို့မဟုတ် timestamp တစ်ခုစီကို Julian day number အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.to_julian_date() -
Datetime တန်ဖိုးတွေကို ရွေးထားတဲ့ frequency အတိုင်း period တွေအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.to_period([freq]) -
Timestamp တွေကို Python ရဲ့ datetime object တွေအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.to_pydatetime() -
Index တန်ဖိုးတွေကို Series အဖြစ် ပြောင်းပေးပါတယ်။ ပုံမှန်အားဖြင့် မူလ label တွေကို Series ရဲ့ index အဖြစ် သုံးပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.to_series([index, name]) pandas.DatetimeIndex.tzproperty-
တကယ့်အချိန်တစ်မှတ်တည်းကို ထိန်းထားပြီး အခြား timezone ရဲ့ နာရီအတိုင်း ပြောင်းပြပေးပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.tz_convert(tz) -
Timezone မပါတဲ့ datetime တွေအတွက် timezone သတ်မှတ်ပေးပါတယ်။ Timezone ဖြုတ်တဲ့အခါ ဒေသနာရီပေါ်က အချိန်တန်ဖိုးအတိုင်း ထားပါတယ်။
ခေါ်သုံးပုံ
DatetimeIndex.tz_localize(tz[, ambiguous, ...]) pandas.DatetimeIndex.unitpropertypandas.DatetimeIndex.weekdaypropertypandas.DatetimeIndex.yearpropertypandas.Indexclasspandas.Index.allmethodရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲက တန်ဖိုးအားလုံး True ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
Index.all(*args, **kwargs)pandas.Index.anymethodရွေးထားတဲ့ axis သို့မဟုတ် အုပ်စုထဲမှာ True ဖြစ်တဲ့ တန်ဖိုး အနည်းဆုံးတစ်ခု ပါမပါ စစ်ပါတယ်။
ခေါ်သုံးပုံ
Index.any(*args, **kwargs)pandas.Index.appendmethodIndex တစ်ခု သို့မဟုတ် တစ်ခုထက်ပိုတဲ့ index တွေကို အစဉ်လိုက် ဆက်ပေးပါတယ်။ ထပ်နေတဲ့ label တွေလည်း ပါဝင်ပါတယ်။
ခေါ်သုံးပုံ
Index.append(other)pandas.Index.argmaxmethodအကြီးဆုံးတန်ဖိုး ပထမဆုံးတွေ့ရတဲ့ နေရာနံပါတ်ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.argmax([axis, skipna])pandas.Index.argminmethodအသေးဆုံးတန်ဖိုး ပထမဆုံးတွေ့ရတဲ့ နေရာနံပါတ်ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.argmin([axis, skipna])pandas.Index.argsortmethodတန်ဖိုးတွေကို အစဉ်လိုက် စီဖို့ ယူရမယ့် နေရာနံပါတ်တွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.argsort(*args, **kwargs)pandas.Index.arrayattributepandas.Index.asofmethodပေးထားတဲ့ label မတိုင်ခင် သို့မဟုတ် label နေရာမှာ ရှိတဲ့ နောက်ဆုံး အသုံးပြုလို့ရတဲ့ တန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Index.asof(label)pandas.Index.asof_locsmethodရှာမယ့် တန်ဖိုးတစ်ခုစီအတွက် တူညီတဲ့တန်ဖိုး သို့မဟုတ် အဲဒီထက် ငယ်ပြီး အနီးဆုံးတန်ဖိုးရဲ့ နေရာနံပါတ်ကို ရှာပေးပါတယ်။
ခေါ်သုံးပုံ
Index.asof_locs(where, mask)pandas.Index.astypemethodဒေတာအမျိုးအစား (dtype) ပြောင်းပါတယ်။ DataFrame မှာ column တစ်ခုချင်းစီအတွက် မတူတဲ့ dtype ကို mapping နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Index.astype(dtype[, copy])pandas.Index.copymethodလက်ရှိ object ကို မိတ္တူကူးပါတယ်။ HDFStore မှာ သိမ်းထားတဲ့ ဒေတာကို တခြားဖိုင်တစ်ခုထဲ ကူးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Index.copy([name, deep])pandas.Index.deletemethodသတ်မှတ်ထားတဲ့ နေရာနံပါတ်တွေက index entry တွေကို ဖယ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.delete(loc)pandas.Index.differencemethodဒီ index မှာရှိပြီး တစ်ဖက်မှာ မပါတဲ့ label တွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.difference(other[, sort])pandas.Index.dropmethodRow သို့မဟုတ် column တွေကို label နဲ့ ရွေးပြီး ဖယ်ပေးပါတယ်။ Column ဖယ်တဲ့အခါ columns= နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Index.drop(labels[, errors])-
ထပ်နေတဲ့ တန်ဖိုး သို့မဟုတ် row တွေထဲက တစ်ခုကိုပဲ ပုံမှန် ထားပါတယ်။ ဘယ်တစ်ခုကို ထားမလဲ keep နဲ့ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Index.drop_duplicates(*[, keep]) pandas.Index.droplevelmethodအဆင့်ဆင့်ဖွဲ့ထားတဲ့ index ထဲက level တစ်ခု သို့မဟုတ် အများကြီးကို ဖယ်ပါတယ်။
ခေါ်သုံးပုံ
Index.droplevel([level])pandas.Index.dropnamethodတန်ဖိုးပျောက်နေတဲ့ entry တွေကို ဖယ်ပါတယ်။ DataFrame မှာ subset နဲ့ စစ်မယ့် column တွေကို ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Index.dropna([how])pandas.Index.dtypeattributepandas.Index.duplicatedmethodထပ်နေတဲ့ တန်ဖိုး ဒါမှမဟုတ် row တွေကို True/False နဲ့ မှတ်ပေးပါတယ်။ keep=False ဆို ထပ်နေတဲ့ အုပ်စုတိုင်းရဲ့ entry အားလုံးကို မှတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.duplicated([keep])pandas.Index.emptypropertypandas.Index.equalsmethodObject နှစ်ခုရဲ့ အရွယ်အစားနဲ့ တန်ဖိုးတွေ တူမတူ စစ်ပါတယ်။ နှစ်ခုလုံးမှာ တန်ဖိုးပျောက်တဲ့နေရာ တူရင် အဲဒီနေရာကို တူတယ်လို့ ယူပါတယ်။
ခေါ်သုံးပုံ
Index.equals(other)pandas.Index.factorizemethodမထပ်တဲ့ တန်ဖိုးတစ်မျိုးစီအတွက် ကိန်းပြည့် code တစ်ခု သတ်မှတ်ပြီး code တွေနဲ့ မထပ်တဲ့တန်ဖိုးစာရင်းကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.factorize([sort, use_na_sentinel])pandas.Index.fillnamethodပျောက်နေတဲ့တန်ဖိုးတွေကို ဖြည့်ပါတယ်။ တန်ဖိုးတစ်ခုတည်းနဲ့ ဖြည့်နိုင်သလို label တူတဲ့တန်ဖိုးတွေနဲ့လည်း တွဲဖြည့်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Index.fillna(value)pandas.Index.get_indexermethodရှာလိုက်တဲ့ label တစ်ခုစီက ဒီ index ရဲ့ ဘယ်နေရာမှာ ရှိလဲ ပြန်ပေးပါတယ်။ မတွေ့ရင် -1 ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.get_indexer(target[, method, limit, ...])နမူနာ
pd.Index(["A", "B"]).get_indexer(["B", "C"])-
Index မှာ label ထပ်နေရင်လည်း ရှာလိုက်တဲ့ label တွေရဲ့ နေရာနံပါတ်တွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.get_indexer_for(target) -
Label ထပ်နေနိုင်တဲ့ index ထဲမှာ ကိုက်ညီတဲ့ နေရာအားလုံးနဲ့ မတွေ့ရတဲ့ target တွေရဲ့ နေရာနံပါတ်တွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.get_indexer_non_unique(target) -
MultiIndex ရဲ့ သတ်မှတ်ထားတဲ့ level က label တွေကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.get_level_values(level) pandas.Index.get_locmethodထည့်လိုက်တဲ့ index key နဲ့ ကိုက်တဲ့ နေရာတစ်ခု သို့မဟုတ် နေရာအများအပြားကို ရှာပေးပါတယ်။
ခေါ်သုံးပုံ
Index.get_loc(key)-
Label နဲ့ slice လုပ်တဲ့အခါ အစ သို့မဟုတ် အဆုံး နေရာနံပါတ်ကို ရှာပေးပါတယ်။
ခေါ်သုံးပုံ
Index.get_slice_bound(label, side) pandas.Index.has_duplicatespropertyIndex ထဲမှာ တစ်ကြိမ်ထက်ပို ပါနေတဲ့ label ရှိမရှိ စစ်ပါတယ်။
pandas.Index.hasnansattributepandas.Index.identicalmethodIndex နှစ်ခုရဲ့ တန်ဖိုး၊ index အမျိုးအစားနဲ့ အမည်လို metadata တွေ တူမတူ စစ်ပါတယ်။
ခေါ်သုံးပုံ
Index.identical(other)-
object dtype ထဲက တန်ဖိုးတွေအတွက် ပိုသင့်တော်တဲ့ dtype ဖြစ်နိုင်မလား စစ်ပါတယ်။ ဂဏန်းပုံစံရေးထားတဲ့ စာသားတွေကို ဂဏန်းအဖြစ် အတင်းမပြောင်းပါ။
ခေါ်သုံးပုံ
Index.infer_objects([copy]) pandas.Index.inferred_typeattributepandas.Index.insertmethodသတ်မှတ်ထားတဲ့နေရာမှာ တန်ဖိုးအသစ်ထည့်ပါတယ်။ DataFrame မှာ column အသစ်ထည့်ပေးပြီး မူလအတိုင်းဆို column အမည် ထပ်လို့မရပါ။
ခေါ်သုံးပုံ
Index.insert(loc, item)-
အခြား index သို့မဟုတ် label စုစည်းမှုတစ်ခုနဲ့ တူညီတဲ့ label တွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.intersection(other[, sort])နမူနာ
pd.Index(["A", "B"]).intersection(["B", "C"]) pandas.Index.is_methodIndex နှစ်ခုက identity marker တစ်ခုတည်းကို မျှသုံးနေလား စစ်ပါတယ်။ Marker မပြောင်းတဲ့ view တွေလည်း ပါဝင်ပါတယ်။
ခေါ်သုံးပုံ
Index.is_(other)pandas.Index.is_monotonic_decreasingpropertypandas.Index.is_monotonic_increasingpropertyIndex တန်ဖိုးတွေက မလျော့သွားဘဲ အစဉ်လိုက် စီထားသလား စစ်ပါတယ်။ တန်းတူတန်ဖိုးတွေ ပါနိုင်ပါတယ်။
pandas.Index.is_uniqueattributeIndex label တစ်ခုစီ တစ်ကြိမ်ပဲ ပါသလား စစ်ပါတယ်။
pandas.Index.isinmethodတန်ဖိုးတစ်ခုစီက ပေးထားတဲ့ အစုထဲမှာ ပါမပါ စစ်ပြီး True သို့မဟုတ် False ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.isin(values[, level])pandas.Index.isnamethodတန်ဖိုး ပျောက်နေသလား စစ်ပါတယ်။ တန်ဖိုးတစ်ခုကို ပေးရင် True/False တစ်ခု၊ array ပုံစံ ပေးရင် နေရာတစ်ခုစီအတွက် True/False တွေ ပြန်ရပါတယ်။
ခေါ်သုံးပုံ
Index.isna()pandas.Index.itemmethodတန်ဖိုးတစ်ခုကို scalar အဖြစ် ထုတ်ပေးပါတယ်။ Series၊ Index နဲ့ array မှာ ပုံမှန်အားဖြင့် element တစ်ခုတည်း ရှိရပါတယ်။
ခေါ်သုံးပုံ
Index.item()pandas.Index.joinmethodJoin စည်းမျဉ်းအတိုင်း label တွေကို ပေါင်းပေးပါတယ်။ မူလ index တွေရဲ့ နေရာနံပါတ်တွေကိုပါ ပြန်ယူနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Index.join(other, *[, how, level, ...])pandas.Index.mapmethodတန်ဖိုးတစ်ခုစီကို mapping သို့မဟုတ် function သုံးပြီး ပြောင်းပေးပါတယ်။ ဘာကို လက်ခံလဲဆိုတာ ခေါ်တဲ့ object ပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
Index.map(mapper[, na_action])pandas.Index.maxmethodရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အကြီးဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Index.max([axis, skipna])-
pandas က သိမ်းထားတဲ့ ဒေတာအတွက် memory byte အရေအတွက် ပြပေးပါတယ်။ object dtype အတွက် deep=True ပေးရင် အတွင်းက object တွေ သုံးတဲ့ memory ကိုပါ ပိုအသေးစိတ် ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
Index.memory_usage([deep]) pandas.Index.minmethodရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အငယ်ဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Index.min([axis, skipna])pandas.Index.namepropertypandas.Index.namespropertypandas.Index.nbytespropertypandas.Index.ndimpropertypandas.Index.notnamethodisna ရဲ့ True နဲ့ False ကို ပြောင်းပြန်ယူပြီး တန်ဖိုးရှိတဲ့နေရာတွေကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Index.notna()pandas.Index.nuniquemethodမထပ်တဲ့ တန်ဖိုး ဘယ်နှမျိုးရှိလဲ ရေတွက်ပါတယ်။ လက်ခံတဲ့နေရာမှာ dropna=False ပေးရင် တန်ဖိုးပျောက်တာကိုလည်း တစ်မျိုးအဖြစ် ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
Index.nunique([dropna])pandas.Index.putmaskmethodBoolean mask မှာ True ဖြစ်တဲ့ နေရာတွေကို အစားထိုးပြီး index အသစ် တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.putmask(mask, value)pandas.Index.ravelmethodIndex ကိုယ်တိုင်ကို dimension တစ်ခုရှိတဲ့ view အဖြစ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.ravel([order])pandas.Index.reindexmethodTarget index နဲ့အတူ အဲဒီ index က label တွေ ဒီ index မှာ ဘယ်နေရာမှာ ရှိလဲဆိုတဲ့ နေရာနံပါတ်တွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.reindex(target[, method, level, ...])pandas.Index.renamemethodIndex ရဲ့ အမည် သို့မဟုတ် MultiIndex ရဲ့ level အမည်တွေကို သတ်မှတ်ပါတယ်။
ခေါ်သုံးပုံ
Index.rename(name, *[, inplace])pandas.Index.repeatmethodတန်ဖိုးတစ်ခုစီကို သတ်မှတ်ထားတဲ့ အကြိမ်အရေအတွက်အတိုင်း ထပ်ပေးပါတယ်။ စာသားမှာတော့ စာသားတစ်ခုစီအတွင်း ထပ်ရေးပေးပါတယ်။
ခေါ်သုံးပုံ
Index.repeat(repeats[, axis])pandas.Index.replacemethodသတ်မှတ်ထားတဲ့ mapping သို့မဟုတ် ကိုက်ညီတဲ့ စာသားပုံစံအတိုင်း တန်ဖိုးတွေကို အစားထိုးပါတယ်။ ပုံမှန်စာသား pattern အစား regular expression သုံးဖို့ regex သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Index.replace([to_replace, value, regex])-
အစဉ်လိုက် စီထားတဲ့ ဒေတာထဲကို တန်ဖိုးအသစ် ထည့်တဲ့အခါ အစဉ်မပျက်စေမယ့် နေရာတွေကို ရှာပေးပါတယ်။
ခေါ်သုံးပုံ
Index.searchsorted(value[, side, sorter]) pandas.Index.set_namesmethodLabel တန်ဖိုးတွေကို မူလအတိုင်း ထားပြီး index level တစ်ခု သို့မဟုတ် အများအပြားရဲ့ အမည်ကို ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Index.set_names(names, *[, level, inplace])pandas.Index.shapepropertypandas.Index.shiftmethodအချိန်ကို အခြေခံတဲ့ index label တွေကို သတ်မှတ်တဲ့ frequency အတိုင်း အဆင့်အရေအတွက်နဲ့ ရွှေ့ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.shift([periods, freq])pandas.Index.sizeproperty-
သတ်မှတ်တဲ့ label တွေကြား၊ နေရာနံပါတ်နဲ့ ရွေးနိုင်တဲ့ slice တစ်ခု တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.slice_indexer([start, end, step]) pandas.Index.slice_locsmethodLabel အပိုင်းအခြားရဲ့ အစနဲ့ အဆုံး နေရာနံပါတ်တွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.slice_locs([start, end, step])pandas.Index.sort_valuesmethodဒေတာတန်ဖိုးတစ်ခု သို့မဟုတ် အများအပြားအလိုက် စီပေးပါတယ်။ Missing value တွေကို ဘယ်နေရာမှာ ထားမလဲ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Index.sort_values(*[, return_indexer, ...])-
Index နှစ်ဖက်ထဲက တစ်ဖက်တည်းမှာ ရှိတဲ့ label တွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.symmetric_difference(other[, ...]) pandas.Index.Tpropertypandas.Index.takemethodပေးထားတဲ့ နေရာနံပါတ်တွေအတိုင်း တန်ဖိုးတွေကို ရွေးယူပါတယ်။
ခေါ်သုံးပုံ
Index.take(indices[, axis, allow_fill, ...])pandas.Index.to_framemethodDimension တစ်ခုရှိတဲ့ pandas object ကို DataFrame အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Index.to_frame([index, name])pandas.Index.to_listmethodတန်ဖိုးတွေကို Python list အဖြစ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.to_list()pandas.Index.to_numpymethodတန်ဖိုးတွေကို NumPy array အဖြစ် ပြောင်းပေးပါတယ်။ Column တွေရဲ့ dtype မတူရင် အားလုံးနဲ့ ကိုက်ညီတဲ့ dtype တစ်ခုကို သုံးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Index.to_numpy([dtype, copy, na_value])pandas.Index.to_seriesmethodIndex တန်ဖိုးတွေကို Series အဖြစ် ပြောင်းပေးပါတယ်။ ပုံမှန်အားဖြင့် မူလ label တွေကို Series ရဲ့ index အဖြစ် သုံးပါတယ်။
ခေါ်သုံးပုံ
Index.to_series([index, name])pandas.Index.unionmethodနှစ်ဖက်လုံးက label တွေကို index တစ်ခုတည်းအဖြစ် စုပေးပါတယ်။
ခေါ်သုံးပုံ
Index.union(other[, sort])နမူနာ
pd.Index(["A", "B"]).union(["B", "C"])pandas.Index.uniquemethodတန်ဖိုးတွေကို ပြန်မစီဘဲ ပထမဆုံးတွေ့တဲ့ အစဉ်အတိုင်း မထပ်တဲ့တန်ဖိုးတွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Index.unique([level])-
တန်ဖိုး သို့မဟုတ် row ပေါင်းစပ်ပုံ တစ်မျိုးစီ ဘယ်နှကြိမ်ပါလဲ ရေတွက်ပါတယ်။ အချိုးလိုရင် normalize၊ တန်ဖိုးပျောက်တာ ထည့်လိုရင် dropna=False သုံးပါ။
ခေါ်သုံးပုံ
Index.value_counts([normalize, sort, ...]) pandas.Index.valuespropertypandas.Index.viewmethodObject ရဲ့ dtype နဲ့ သိမ်းဆည်းပုံအရ ခွင့်ပြုတဲ့ တခြား view သို့မဟုတ် ပုံစံနဲ့ တန်ဖိုးတွေကို ကြည့်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Index.view([cls])pandas.Index.wheremethodသတ်မှတ်ချက် True ဖြစ်တဲ့ နေရာက တန်ဖိုးတွေကို ထားပြီး ကျန်တဲ့နေရာတွေကို ထည့်ပေးထားတဲ့တန်ဖိုးနဲ့ အစားထိုးပါတယ်။
ခေါ်သုံးပုံ
Index.where(cond[, other])pandas.IndexSlicedataMultiIndex level အလိုက် ဒေတာကို ရွေးဖို့ indexer တည်ဆောက်ပေးပါတယ်။
pandas.IntervalIndexclasspandas.IntervalIndex.closedattributepandas.IntervalIndex.closed_leftpropertypandas.IntervalIndex.closed_rightproperty-
ပေးထားတဲ့ တန်ဖိုးတစ်ခု ဘယ် interval တွေထဲမှာ ပါလဲ စစ်ပါတယ်။ အစွန်းတန်ဖိုးတွေကို ထည့်မထည့်တဲ့ စည်းမျဉ်းကိုပါ ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
IntervalIndex.contains(other) -
အစဉ်တူ array တွေကနေ object တည်ဆောက်ပါတယ်။ MultiIndex မှာ array တစ်ခုစီက level တစ်ခုဖြစ်ပြီး interval မှာတော့ ဘယ်နဲ့ ညာ အစွန်းတန်ဖိုးတွေ ဖြစ်ပါတယ်။
ခေါ်သုံးပုံ
IntervalIndex.from_arrays(left, right[, ...]) -
ဆက်တိုက်ရှိတဲ့ အစွန်းတန်ဖိုးတွေကို သုံးပြီး ကပ်လျက် interval တွေ တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
IntervalIndex.from_breaks(breaks[, closed, ...]) -
Tuple တွေကနေ index သို့မဟုတ် interval array တည်ဆောက်ပါတယ်။ Interval tuple တစ်ခုစီမှာ အစွန်းတန်ဖိုး နှစ်ခု ပါပါတယ်။
ခေါ်သုံးပုံ
IntervalIndex.from_tuples(data[, closed, ...]) -
ရှာလိုက်တဲ့ label တစ်ခုစီက ဒီ index ရဲ့ ဘယ်နေရာမှာ ရှိလဲ ပြန်ပေးပါတယ်။ မတွေ့ရင် -1 ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
IntervalIndex.get_indexer(target[, method, ...]) -
ထည့်လိုက်တဲ့ index key နဲ့ ကိုက်တဲ့ နေရာတစ်ခု သို့မဟုတ် နေရာအများအပြားကို ရှာပေးပါတယ်။
ခေါ်သုံးပုံ
IntervalIndex.get_loc(key) pandas.IntervalIndex.is_emptypropertypandas.IntervalIndex.is_non_overlapping_monotonicattributepandas.IntervalIndex.is_overlappingpropertypandas.IntervalIndex.leftattributepandas.IntervalIndex.lengthpropertypandas.IntervalIndex.midattributepandas.IntervalIndex.open_leftpropertypandas.IntervalIndex.open_rightproperty-
Interval တွေမှာ ထပ်နေတဲ့ နေရာရှိမရှိ စစ်ပါတယ်။ အစွန်းတန်ဖိုးတွေ ပါမပါလည်း ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
IntervalIndex.overlaps(other) pandas.IntervalIndex.rightattribute-
Interval ရဲ့ အစွန်းနေရာတွေကို အတူတူထားပြီး ဘယ်အစွန်းကို ထည့်မလဲ ပြောင်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
IntervalIndex.set_closed(closed) -
Interval တစ်ခုစီရဲ့ ဘယ်အစွန်းနဲ့ ညာအစွန်းကို တစ်တွဲစီအဖြစ် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
IntervalIndex.to_tuples([na_tuple]) pandas.IntervalIndex.valuespropertypandas.MultiIndex.appendmethodဖြစ်နိုင်တဲ့အခါ index အမည်နဲ့ level တွေကို ညှိပြီး index တွေထဲက entry တွေကို ဆက်ပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.append(other)pandas.MultiIndex.codespropertypandas.MultiIndex.copymethodလက်ရှိ object ကို မိတ္တူကူးပါတယ်။ HDFStore မှာ သိမ်းထားတဲ့ ဒေတာကို တခြားဖိုင်တစ်ခုထဲ ကူးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.copy([names, deep, name])pandas.MultiIndex.dropmethodRow သို့မဟုတ် column တွေကို label နဲ့ ရွေးပြီး ဖယ်ပေးပါတယ်။ Column ဖယ်တဲ့အခါ columns= နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.drop(codes[, level, errors])-
အဆင့်ဆင့်ဖွဲ့ထားတဲ့ index ထဲက level တစ်ခု သို့မဟုတ် အများကြီးကို ဖယ်ပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.droplevel([level]) pandas.MultiIndex.dtypesattribute-
အစဉ်တူ array တွေကနေ object တည်ဆောက်ပါတယ်။ MultiIndex မှာ array တစ်ခုစီက level တစ်ခုဖြစ်ပြီး interval မှာတော့ ဘယ်နဲ့ ညာ အစွန်းတန်ဖိုးတွေ ဖြစ်ပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.from_arrays(arrays[, sortorder, ...]) -
DataFrame column တွေကို index level အဖြစ် သုံးပြီး MultiIndex တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.from_frame(df[, sortorder, names]) -
ထည့်ပေးထားတဲ့ index level တစ်ခုစီထဲက ဖြစ်နိုင်သမျှ တန်ဖိုးအတွဲအားလုံးနဲ့ MultiIndex တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.from_product(iterables[, ...]) -
Tuple တွေကနေ index သို့မဟုတ် interval array တည်ဆောက်ပါတယ်။ Interval tuple တစ်ခုစီမှာ အစွန်းတန်ဖိုး နှစ်ခု ပါပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.from_tuples(tuples[, sortorder, ...]) -
ရှာလိုက်တဲ့ label တစ်ခုစီက ဒီ index ရဲ့ ဘယ်နေရာမှာ ရှိလဲ ပြန်ပေးပါတယ်။ မတွေ့ရင် -1 ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.get_indexer(target[, method, ...]) -
MultiIndex ရဲ့ သတ်မှတ်ထားတဲ့ level က label တွေကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.get_level_values(level) -
ထည့်လိုက်တဲ့ index key နဲ့ ကိုက်တဲ့ နေရာတစ်ခု သို့မဟုတ် နေရာအများအပြားကို ရှာပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.get_loc(key) -
MultiIndex level တစ်ဆင့်မှာ key ရဲ့ နေရာကို ရှာပြီး ဖြစ်နိုင်ရင် အဲဒီ level ကို ဖယ်ထားတဲ့ index ကိုပါ ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.get_loc_level(key[, level, ...]) -
MultiIndex ရဲ့ level တွေမှာ ရွေးချယ်ချက်နဲ့ ကိုက်တဲ့ row တွေရဲ့ နေရာနံပါတ်တွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.get_locs(seq) pandas.MultiIndex.levelsattributepandas.MultiIndex.levshapepropertypandas.MultiIndex.namespropertypandas.MultiIndex.nlevelsproperty-
MultiIndex level တွေထဲမှာ သိမ်းထားပေမယ့် entry တစ်ခုမှာမှ အသုံးမပြုတဲ့ label တွေကို ဖယ်ပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.remove_unused_levels() -
MultiIndex ထဲက index level တွေရဲ့ အစဉ်ကို ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.reorder_levels(order) -
Index level တစ်ခုချင်းမှာ entry နဲ့ label တွေကို ချိတ်ထားတဲ့ ကိန်းပြည့် code တွေကို ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.set_codes(codes, *[, level, ...]) -
သတ်မှတ်ထားတဲ့ MultiIndex level တွေမှာ သုံးနိုင်တဲ့ label စုစည်းမှုကို အစားထိုးပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.set_levels(levels, *[, level, ...]) -
သတ်မှတ်ထားတဲ့ MultiIndex level အတိုင်း စီပေးပြီး မူလ entry တွေကို ပြန်စီတဲ့ အစဉ်ကိုပါ ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.sortlevel([level, ascending, ...]) -
MultiIndex ထဲက level နှစ်ခုရဲ့ နေရာကို လဲပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.swaplevel([i, j]) -
MultiIndex ရဲ့ entry တစ်ခုစီကို tuple အဖြစ် ပြောင်းပြီး သာမန် Index တစ်ခု ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.to_flat_index() -
MultiIndex level တစ်ဆင့်စီအတွက် column တစ်ခုစီပါတဲ့ DataFrame တစ်ခု ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.to_frame([index, name, ...]) -
အစဉ်လိုက်စီပြီးသား axis မှာ သတ်မှတ်လိုက်တဲ့ အစနဲ့ အဆုံးကြားက label တွေကိုပဲ ထားပါတယ်။
ခေါ်သုံးပုံ
MultiIndex.truncate([before, after]) pandas.PeriodIndexclass-
ဒေတာကို သတ်မှတ်ထားတဲ့ frequency နဲ့ ညှိပေးပါတယ်။ အချိန်ပိုင်းအလိုက် စုတွက်ဖို့ resample ကို သုံးပါ။
ခေါ်သုံးပုံ
PeriodIndex.asfreq([freq, how]) pandas.PeriodIndex.asi8propertypandas.PeriodIndex.daypropertypandas.PeriodIndex.day_of_weekpropertypandas.PeriodIndex.day_of_yearpropertypandas.PeriodIndex.dayofweekpropertypandas.PeriodIndex.dayofyearpropertypandas.PeriodIndex.days_in_monthpropertypandas.PeriodIndex.daysinmonthpropertypandas.PeriodIndex.end_timepropertypandas.PeriodIndex.freqpropertypandas.PeriodIndex.freqstrproperty-
နှစ်နဲ့ သုံးလပတ်လို ရက်စွဲ field တွေကနေ PeriodIndex တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
PeriodIndex.from_fields(*[, year, quarter, ...]) -
ရွေးထားတဲ့ frequency အတိုင်း ကိန်းပြည့် period offset တွေကနေ PeriodIndex တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
PeriodIndex.from_ordinals(ordinals, *, freq) pandas.PeriodIndex.hourpropertypandas.PeriodIndex.is_leap_yearpropertypandas.PeriodIndex.minutepropertypandas.PeriodIndex.monthpropertypandas.PeriodIndex.quarterpropertypandas.PeriodIndex.qyearpropertypandas.PeriodIndex.secondpropertypandas.PeriodIndex.start_timeproperty-
အချိန်တန်ဖိုးကို %Y-%m-%d လို strftime သတ်မှတ်ချက်တွေနဲ့ စာသားအဖြစ် ပြောင်းပေးပါတယ်။ pandas 3.1.1 မှာ Period.strftime ကို deprecated အဖြစ် သတ်မှတ်ထားပါတယ်။
ခေါ်သုံးပုံ
PeriodIndex.strftime(date_format) -
Period ရဲ့ အစ သို့မဟုတ် အဆုံးကို timestamp တစ်ခုနဲ့ ကိုယ်စားပြုပေးပါတယ်။
ခေါ်သုံးပုံ
PeriodIndex.to_timestamp([freq, how]) pandas.PeriodIndex.weekpropertypandas.PeriodIndex.weekdaypropertypandas.PeriodIndex.weekofyearpropertypandas.PeriodIndex.yearpropertypandas.RangeIndexclass-
Python range ရဲ့ start၊ stop နဲ့ step ကို သုံးပြီး တန်ဖိုးအားလုံးကို သီးခြားသိမ်းစရာမလိုတဲ့ RangeIndex တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
RangeIndex.from_range(data[, name, dtype]) pandas.RangeIndex.startpropertypandas.RangeIndex.steppropertypandas.RangeIndex.stoppropertypandas.TimedeltaIndexclass-
အချိန်တန်ဖိုး သိမ်းထားတဲ့ ယူနစ်ကို ပြောင်းပေးပါတယ်။ တိကျမှုနဲ့ round လုပ်ပုံက ခွင့်ပြုထားတဲ့ စည်းမျဉ်းပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
TimedeltaIndex.as_unit(unit) pandas.TimedeltaIndex.asi8property-
Timestamp သို့မဟုတ် ကြာချိန်ကို သတ်မှတ်ထားတဲ့ frequency ရဲ့ နောက်အမှတ်အထိ ပင့်ပေးပါတယ်။
ခေါ်သုံးပုံ
TimedeltaIndex.ceil(freq[, ambiguous, ...]) pandas.TimedeltaIndex.componentspropertypandas.TimedeltaIndex.daysproperty-
Timestamp သို့မဟုတ် ကြာချိန်ကို သတ်မှတ်ထားတဲ့ frequency ရဲ့ ရှေ့အမှတ်အထိ ချပေးပါတယ်။
ခေါ်သုံးပုံ
TimedeltaIndex.floor(freq[, ambiguous, ...]) pandas.TimedeltaIndex.inferred_freqattribute-
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေရဲ့ ပျမ်းမျှကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
TimedeltaIndex.mean(*[, skipna, axis]) pandas.TimedeltaIndex.microsecondspropertypandas.TimedeltaIndex.nanosecondsproperty-
ကိန်းဂဏန်းကို သတ်မှတ်ထားတဲ့ ဒဿမနေရာအတိုင်း round လုပ်ပေးပါတယ်။ ရက်စွဲနဲ့ အချိန်တန်ဖိုးတွေအတွက် frequency သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
TimedeltaIndex.round(freq[, ambiguous, ...]) pandas.TimedeltaIndex.secondsproperty-
Dimension တစ်ခုရှိတဲ့ pandas object ကို DataFrame အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
TimedeltaIndex.to_frame([index, name]) -
pandas ကြာချိန်တန်ဖိုးတွေကို Python standard library ရဲ့ timedelta object တွေအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
TimedeltaIndex.to_pytimedelta() -
Index တန်ဖိုးတွေကို Series အဖြစ် ပြောင်းပေးပါတယ်။ ပုံမှန်အားဖြင့် မူလ label တွေကို Series ရဲ့ index အဖြစ် သုံးပါတယ်။
ခေါ်သုံးပုံ
TimedeltaIndex.to_series([index, name]) pandas.TimedeltaIndex.unitproperty
Arrays၊ Scalars နှင့် Data Types (245)
pandas.api.types.infer_dtypefunctionတန်ဖိုးတွေကို စစ်ပြီး ကိန်းပြည့်၊ စာသား ဒါမှမဟုတ် ရောနှောထားတဲ့ ဒေတာ စသဖြင့် အမျိုးအစား ခန့်မှန်းပါတယ်။
ခေါ်သုံးပုံ
api.types.infer_dtype(value[, skipna])-
dtype က ကိန်းစစ်အမျိုးအစား ဟုတ်မဟုတ် စစ်ပါတယ်။ Boolean နဲ့ complex number မပါဝင်ပါ။
ခေါ်သုံးပုံ
api.types.is_any_real_numeric_dtype(arr_or_dtype) pandas.api.types.is_boolfunctionပေးထားတဲ့ တန်ဖိုးတစ်ခုက True/False အမျိုးအစား ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_bool(obj)pandas.api.types.is_bool_dtypefunctiondtype က Boolean အမျိုးအစား ဟုတ်မဟုတ် စစ်ပါတယ်။ တန်ဖိုးပျောက်တာကို လက်ခံတဲ့ nullable Boolean လည်း ပါဝင်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_bool_dtype(arr_or_dtype)-
Categorical dtype ဟုတ်မဟုတ် စစ်ပါတယ်။ ကုဒ်အသစ်အတွက် isinstance(dtype, pd.CategoricalDtype) ကို သုံးပါ။
ခေါ်သုံးပုံ
api.types.is_categorical_dtype(arr_or_dtype) pandas.api.types.is_complexfunctionပေးထားတဲ့ တန်ဖိုးတစ်ခုက complex number ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_complex(obj)-
dtype က complex number တွေ သိမ်းတဲ့ အမျိုးအစား ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_complex_dtype(arr_or_dtype) -
Timezone ပါသည်ဖြစ်စေ၊ မပါသည်ဖြစ်စေ datetime64 dtype ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_datetime64_any_dtype(arr_or_dtype) -
NumPy ရဲ့ datetime64 dtype ကို သုံးထားသလား စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_datetime64_dtype(arr_or_dtype) -
Datetime dtype ကို nanosecond အထိ သိမ်းထားသလား စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_datetime64_ns_dtype(arr_or_dtype) -
Timezone ပါတဲ့ datetime dtype ဟုတ်မဟုတ် စစ်ပါတယ်။ ကုဒ်အသစ်အတွက် isinstance(dtype, pd.DatetimeTZDtype) ကို သုံးပါ။
ခေါ်သုံးပုံ
api.types.is_datetime64tz_dtype(arr_or_dtype) pandas.api.types.is_dict_likefunctionObject ကို dictionary လို key နဲ့ တန်ဖိုးယူနိုင်သလား၊ keys ရှိသလား စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_dict_like(obj)pandas.api.types.is_dtype_equalfunctionပေးထားတဲ့ နှစ်ခုကို pandas ရဲ့ dtype စည်းမျဉ်းအရ တူမတူ စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_dtype_equal(source, target)-
pandas ရဲ့ ExtensionDtype ကို သုံးထားသလား စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_extension_array_dtype(arr_or_dtype) pandas.api.types.is_file_likefunctionObject က ဖိုင်လို တစ်ပိုင်းစီ ဖတ်လို့ရပြီး read သို့မဟုတ် write လုပ်နိုင်သလား စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_file_like(obj)pandas.api.types.is_floatfunctionပေးထားတဲ့ တန်ဖိုးတစ်ခုက floating-point number ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_float(obj)pandas.api.types.is_float_dtypefunctiondtype က floating-point number တွေ သိမ်းတဲ့ အမျိုးအစား ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_float_dtype(arr_or_dtype)pandas.api.types.is_hashablefunctionပေးထားတဲ့တန်ဖိုးအတွက် Python က hash တွက်ပေးနိုင်သလား စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_hashable(obj[, allow_slice])pandas.api.types.is_int64_dtypefunctionအပေါင်းနဲ့ အနုတ် နှစ်မျိုးလုံး သိမ်းနိုင်တဲ့ 64-bit ကိန်းပြည့် dtype ဟုတ်မဟုတ် စစ်ပါတယ်။ ဒီ helper ကို နောက်ပိုင်းမှာ ဖယ်ရှားနိုင်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_int64_dtype(arr_or_dtype)pandas.api.types.is_integerfunctionပေးထားတဲ့ တန်ဖိုးတစ်ခုက ကိန်းပြည့် ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_integer(obj)-
dtype က ကိန်းပြည့်တွေ သိမ်းတဲ့ အမျိုးအစား ဟုတ်မဟုတ် စစ်ပါတယ်။ nullable integer dtype တွေလည်း ပါဝင်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_integer_dtype(arr_or_dtype) -
Interval dtype ဟုတ်မဟုတ် စစ်ပါတယ်။ ကုဒ်အသစ်အတွက် isinstance(dtype, pd.IntervalDtype) ကို သုံးပါ။
ခေါ်သုံးပုံ
api.types.is_interval_dtype(arr_or_dtype) pandas.api.types.is_iteratorfunctionObject က နောက်တန်ဖိုးကို next နဲ့ ယူနိုင်တဲ့ iterator ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_iterator(obj)pandas.api.types.is_list_likefunctionpandas အတွက် ပေးထားတဲ့ object ကို sequence၊ set သို့မဟုတ် array လို သုံးနိုင်သလား စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_list_like(obj[, allow_sets])pandas.api.types.is_named_tuplefunctionပေးထားတဲ့ တန်ဖိုးက field အမည်တွေပါတဲ့ tuple ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_named_tuple(obj)pandas.api.types.is_numberfunctionပေးထားတဲ့ တန်ဖိုးတစ်ခုက ဂဏန်းအမျိုးအစား ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_number(obj)-
pandas သတ်မှတ်ချက်အရ ဂဏန်း dtype ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_numeric_dtype(arr_or_dtype) pandas.api.types.is_object_dtypefunctionNumPy ရဲ့ object dtype ကို သုံးထားသလား စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_object_dtype(arr_or_dtype)pandas.api.types.is_period_dtypefunctionPeriod dtype ဟုတ်မဟုတ် စစ်ပါတယ်။ ကုဒ်အသစ်အတွက် isinstance(dtype, pd.PeriodDtype) ကို သုံးပါ။
ခေါ်သုံးပုံ
api.types.is_period_dtype(arr_or_dtype)pandas.api.types.is_refunctionပေးထားတဲ့ object က compile လုပ်ပြီးသား regular expression ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_re(obj)-
ပေးထားတဲ့ pattern ကို regular expression အဖြစ် compile လုပ်လို့ရမရ စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_re_compilable(obj) -
အနုတ်တန်ဖိုးတွေပါ သိမ်းနိုင်တဲ့ ကိန်းပြည့် dtype ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_signed_integer_dtype(arr_or_dtype) pandas.api.types.is_sparsefunctionSparse dtype ဟုတ်မဟုတ် စစ်ပါတယ်။ ကုဒ်အသစ်အတွက် isinstance(dtype, pd.SparseDtype) ကို သုံးပါ။
ခေါ်သုံးပုံ
api.types.is_sparse(arr)pandas.api.types.is_string_dtypefunctionပေးထားတဲ့ dtype သို့မဟုတ် သက်ဆိုင်ရာ array ထဲက တန်ဖိုးတွေက စာသားအမျိုးအစား ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_string_dtype(arr_or_dtype)-
NumPy ရဲ့ timedelta dtype ကို သုံးထားသလား စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_timedelta64_dtype(arr_or_dtype) -
NumPy timedelta dtype ကို nanosecond ယူနစ်နဲ့ သိမ်းထားသလား စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_timedelta64_ns_dtype(arr_or_dtype) -
သုညနဲ့ အပေါင်းတန်ဖိုးတွေကိုပဲ သိမ်းတဲ့ ကိန်းပြည့် dtype ဟုတ်မဟုတ် စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.types.is_unsigned_integer_dtype(arr_or_dtype) pandas.api.types.pandas_dtypefunctionပေးထားတဲ့ dtype သတ်မှတ်ချက်ကို pandas သို့မဟုတ် NumPy dtype object အဖြစ် ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
api.types.pandas_dtype(dtype)-
Categorical တန်ဖိုးတွေကို ပေါင်းပြီး ရလဒ်အားလုံးကို ကိုယ်စားပြုနိုင်တဲ့ category အစုကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
api.types.union_categoricals(to_union[, ...]) pandas.arrayfunctionတစ်ဖက်မြင် pandas array တစ်ခု တည်ဆောက်ပါတယ်။ လိုရင် dtype ကို ကိုယ်တိုင် သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
pd.array(data[, dtype, copy])pandas.arrays.ArrowExtensionArrayclasspandas.arrays.ArrowStringArrayclasspandas.arrays.BooleanArrayclasspandas.arrays.DatetimeArrayclasspandas.arrays.FloatingArrayclasspandas.arrays.IntegerArrayclasspandas.arrays.IntervalArrayclasspandas.arrays.IntervalArray.closedproperty-
ပေးထားတဲ့ တန်ဖိုးတစ်ခု ဘယ် interval တွေထဲမှာ ပါလဲ စစ်ပါတယ်။ အစွန်းတန်ဖိုးတွေကို ထည့်မထည့်တဲ့ စည်းမျဉ်းကိုပါ ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
IntervalArray.contains(other) -
အစဉ်တူ array တွေကနေ object တည်ဆောက်ပါတယ်။ MultiIndex မှာ array တစ်ခုစီက level တစ်ခုဖြစ်ပြီး interval မှာတော့ ဘယ်နဲ့ ညာ အစွန်းတန်ဖိုးတွေ ဖြစ်ပါတယ်။
ခေါ်သုံးပုံ
IntervalArray.from_arrays(left, right, closed='right', copy=False, dtype=None) -
ဆက်တိုက်ရှိတဲ့ အစွန်းတန်ဖိုးတွေကို သုံးပြီး ကပ်လျက် interval တွေ တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
IntervalArray.from_breaks(breaks, closed='right', copy=False, dtype=None) -
Tuple တွေကနေ index သို့မဟုတ် interval array တည်ဆောက်ပါတယ်။ Interval tuple တစ်ခုစီမှာ အစွန်းတန်ဖိုး နှစ်ခု ပါပါတယ်။
ခေါ်သုံးပုံ
IntervalArray.from_tuples(data, closed='right', copy=False, dtype=None) pandas.arrays.IntervalArray.is_emptyattributepandas.arrays.IntervalArray.is_non_overlapping_monotonicpropertypandas.arrays.IntervalArray.leftpropertypandas.arrays.IntervalArray.lengthpropertypandas.arrays.IntervalArray.midproperty-
Interval တွေမှာ ထပ်နေတဲ့ နေရာရှိမရှိ စစ်ပါတယ်။ အစွန်းတန်ဖိုးတွေ ပါမပါလည်း ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
IntervalArray.overlaps(other) pandas.arrays.IntervalArray.rightproperty-
Interval ရဲ့ အစွန်းနေရာတွေကို အတူတူထားပြီး ဘယ်အစွန်းကို ထည့်မလဲ ပြောင်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
IntervalArray.set_closed(closed) -
Interval တစ်ခုစီရဲ့ ဘယ်အစွန်းနဲ့ ညာအစွန်းကို တစ်တွဲစီအဖြစ် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
IntervalArray.to_tuples(na_tuple=True) pandas.arrays.PeriodArrayclasspandas.arrays.SparseArrayclasspandas.arrays.StringArrayclasspandas.arrays.TimedeltaArrayclasspandas.ArrowDtypeclasspandas.BooleanDtypeclass-
တန်ဖိုးတွေကို NumPy ရဲ့ array protocol ကတစ်ဆင့် သုံးနိုင်အောင် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Categorical.__array__([dtype, copy]) -
ရှိပြီးသား တန်ဖိုးတွေကို အတူတူထားပြီး လက်ခံမယ့် category စာရင်းမှာ အသစ်ထည့်ပါတယ်။
ခေါ်သုံးပုံ
Categorical.add_categories(new_categories) -
Category တွေကို နှိုင်းယှဉ်တဲ့အခါ သတ်မှတ်ထားတဲ့ အစဉ် သုံးနိုင်အောင် ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
Categorical.as_ordered() -
Category အမည်တွေကို အတူတူထားပြီး သတ်မှတ်ထားတဲ့ အစဉ်ကို ဖယ်ပါတယ်။
ခေါ်သုံးပုံ
Categorical.as_unordered() pandas.Categorical.categoriespropertypandas.Categorical.codespropertypandas.Categorical.dtypeproperty-
ကိန်းပြည့် code တွေနဲ့ ရှိပြီးသား category တွေကနေ categorical object တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
Categorical.from_codes(codes[, categories, ...]) pandas.Categorical.mapmethodတန်ဖိုးတစ်ခုစီကို mapping သို့မဟုတ် function သုံးပြီး ပြောင်းပေးပါတယ်။ ဘာကို လက်ခံလဲဆိုတာ ခေါ်တဲ့ object ပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
Categorical.map(mapper[, na_action])pandas.Categorical.orderedproperty-
ရွေးထားတဲ့ category တွေကို ဖယ်ပြီး အဲဒီ category သုံးထားတဲ့ နေရာတွေကို ပျောက်နေတဲ့တန်ဖိုးအဖြစ် ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
Categorical.remove_categories(removals) -
ဒေတာထဲမှာ အသုံးမပြုထားတဲ့ category တွေကို စာရင်းထဲက ဖယ်ပါတယ်။
ခေါ်သုံးပုံ
Categorical.remove_unused_categories() -
တန်ဖိုးတစ်ခုစီရဲ့ category ကို အတူတူထားပြီး category အမည်တွေကို ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
Categorical.rename_categories(new_categories) -
တန်ဖိုးတစ်ခုစီရဲ့ category ကို အတူတူထားပြီး category အစဉ်ကို ပြန်သတ်မှတ်ပါတယ်။
ခေါ်သုံးပုံ
Categorical.reorder_categories(new_categories) -
လက်ခံမယ့် category စာရင်းကို ပြောင်းပါတယ်။ စာရင်းအသစ်ထဲ မပါတဲ့ တန်ဖိုးတွေက missing value ဖြစ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Categorical.set_categories(new_categories[, ...]) pandas.CategoricalDtypeclasspandas.CategoricalDtype.categoriespropertypandas.CategoricalDtype.orderedpropertypandas.DatetimeTZDtypeclasspandas.DatetimeTZDtype.tzpropertypandas.DatetimeTZDtype.unitpropertypandas.Float32Dtypeclasspandas.Float64Dtypeclasspandas.Int16Dtypeclasspandas.Int32Dtypeclasspandas.Int64Dtypeclasspandas.Int8Dtypeclasspandas.Intervalclasspandas.Interval.closedattributepandas.Interval.closed_leftattributepandas.Interval.closed_rightattributepandas.Interval.is_emptyattributepandas.Interval.leftattributepandas.Interval.lengthattributepandas.Interval.midattributepandas.Interval.open_leftattributepandas.Interval.open_rightattributepandas.Interval.overlapsmethodInterval တွေမှာ ထပ်နေတဲ့ နေရာရှိမရှိ စစ်ပါတယ်။ အစွန်းတန်ဖိုးတွေ ပါမပါလည်း ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
Interval.overlaps(other)pandas.Interval.rightattributepandas.IntervalDtypeclasspandas.IntervalDtype.subtypepropertypandas.Periodclasspandas.Period.asfreqmethodဒေတာကို သတ်မှတ်ထားတဲ့ frequency နဲ့ ညှိပေးပါတယ်။ အချိန်ပိုင်းအလိုက် စုတွက်ဖို့ resample ကို သုံးပါ။
ခေါ်သုံးပုံ
Period.asfreq(freq[, how])pandas.Period.dayattributepandas.Period.day_of_weekattributepandas.Period.day_of_yearattributepandas.Period.dayofweekattributepandas.Period.dayofyearattributepandas.Period.days_in_monthattributepandas.Period.daysinmonthattributepandas.Period.end_timeattributepandas.Period.freqattributepandas.Period.freqstrattributepandas.Period.hourattributepandas.Period.is_leap_yearattributepandas.Period.minuteattributepandas.Period.monthattributepandas.Period.nowmethodသတ်မှတ်လိုက်တဲ့ timezone အတိုင်း လက်ရှိအချိန်ကို ပြန်ပေးပါတယ်။ Period အတွက် သတ်မှတ်ထားတဲ့ frequency အတိုင်း လက်ရှိ period ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Period.now(freq)pandas.Period.ordinalattributepandas.Period.quarterattributepandas.Period.qyearattributepandas.Period.secondattributepandas.Period.start_timeattributepandas.Period.strftimemethodPeriod ကို သတ်မှတ်ထားတဲ့ format အတိုင်း စာသားပြောင်းပေးပါတယ်။ ဒီ method ကို pandas 3.1.1 မှာ deprecated အဖြစ် သတ်မှတ်ထားပါတယ်။ Period ရဲ့ အစ သို့မဟုတ် အဆုံးကို ပြချင်ရင် အရင် timestamp အဖြစ် ပြောင်းပါ။
ခေါ်သုံးပုံ
Period.strftime(fmt)-
Period ရဲ့ အစ သို့မဟုတ် အဆုံးကို timestamp တစ်ခုနဲ့ ကိုယ်စားပြုပေးပါတယ်။
ခေါ်သုံးပုံ
Period.to_timestamp([freq, how]) pandas.Period.weekattributepandas.Period.weekdayattributepandas.Period.weekofyearattributepandas.Period.yearattributepandas.PeriodDtypeclasspandas.PeriodDtype.freqpropertypandas.SparseDtypeclasspandas.StringDtypeclasspandas.StringDtype.na_valuepropertypandas.StringDtype.storagepropertypandas.Timedeltaclasspandas.Timedelta.as_unitmethodအချိန်တန်ဖိုး သိမ်းထားတဲ့ ယူနစ်ကို ပြောင်းပေးပါတယ်။ တိကျမှုနဲ့ round လုပ်ပုံက ခွင့်ပြုထားတဲ့ စည်းမျဉ်းပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
Timedelta.as_unit(unit[, round_ok])pandas.Timedelta.asm8attributepandas.Timedelta.ceilmethodTimestamp သို့မဟုတ် ကြာချိန်ကို သတ်မှတ်ထားတဲ့ frequency ရဲ့ နောက်အမှတ်အထိ ပင့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timedelta.ceil(freq)pandas.Timedelta.componentsattributepandas.Timedelta.daysattributepandas.Timedelta.floormethodTimestamp သို့မဟုတ် ကြာချိန်ကို သတ်မှတ်ထားတဲ့ frequency ရဲ့ ရှေ့အမှတ်အထိ ချပေးပါတယ်။
ခေါ်သုံးပုံ
Timedelta.floor(freq)-
Timestamp သို့မဟုတ် ကြာချိန်ကို ISO 8601 စာသားပုံစံနဲ့ ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timedelta.isoformat() pandas.Timedelta.maxattributepandas.Timedelta.microsecondsattributepandas.Timedelta.minattributepandas.Timedelta.nanosecondsattributepandas.Timedelta.resolutionattributepandas.Timedelta.resolution_stringattributepandas.Timedelta.roundmethodကိန်းဂဏန်းကို သတ်မှတ်ထားတဲ့ ဒဿမနေရာအတိုင်း round လုပ်ပေးပါတယ်။ ရက်စွဲနဲ့ အချိန်တန်ဖိုးတွေအတွက် frequency သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Timedelta.round(freq)pandas.Timedelta.secondsattribute-
ကြာချိန်ကို NumPy timedelta64 တန်ဖိုးတစ်ခုအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Timedelta.to_numpy([dtype, copy]) -
pandas ကြာချိန်တန်ဖိုးတွေကို Python standard library ရဲ့ timedelta object တွေအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Timedelta.to_pytimedelta() -
pandas ကြာချိန်ကို NumPy timedelta64 တန်ဖိုးတစ်ခုအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Timedelta.to_timedelta64() -
ကြာချိန်ကို စက္ကန့်နဲ့ ပြပါတယ်။ စက္ကန့်ရဲ့ ဒဿမအပိုင်းလည်း ပါဝင်ပါတယ်။
ခေါ်သုံးပုံ
Timedelta.total_seconds() pandas.Timedelta.unitattributepandas.Timedelta.valueattributepandas.Timedelta.viewmethodObject ရဲ့ dtype နဲ့ သိမ်းဆည်းပုံအရ ခွင့်ပြုတဲ့ တခြား view သို့မဟုတ် ပုံစံနဲ့ တန်ဖိုးတွေကို ကြည့်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Timedelta.view(dtype)pandas.Timestampclasspandas.Timestamp.as_unitmethodအချိန်တန်ဖိုး သိမ်းထားတဲ့ ယူနစ်ကို ပြောင်းပေးပါတယ်။ တိကျမှုနဲ့ round လုပ်ပုံက ခွင့်ပြုထားတဲ့ စည်းမျဉ်းပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
Timestamp.as_unit(unit[, round_ok])pandas.Timestamp.asm8attribute-
တူညီတဲ့ timestamp ကို အခြား timezone ရဲ့ နာရီအချိန်အတိုင်း ပြောင်းပြပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.astimezone(tz) pandas.Timestamp.ceilmethodTimestamp သို့မဟုတ် ကြာချိန်ကို သတ်မှတ်ထားတဲ့ frequency ရဲ့ နောက်အမှတ်အထိ ပင့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.ceil(freq[, ambiguous, nonexistent])pandas.Timestamp.combinemethodပြက္ခဒိန်ရက်စွဲနဲ့ နာရီအချိန်ကနေ timestamp တစ်ခု တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.combine(date, time)pandas.Timestamp.ctimemethodTimestamp ကို ဖတ်ရလွယ်တဲ့ ctime စာသားပုံစံနဲ့ ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.ctime()pandas.Timestamp.datemethodပြက္ခဒိန်ရက်စွဲကို Python standard library ရဲ့ date object အဖြစ် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.date()pandas.Timestamp.dayattribute-
ရက်သတ္တပတ်ထဲက နေ့အမည်ကို ပြန်ပေးပါတယ်။ ပြမယ့် ဘာသာစကားကို locale နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Timestamp.day_name([locale]) pandas.Timestamp.day_of_weekattributepandas.Timestamp.day_of_yearattributepandas.Timestamp.dayofweekattributepandas.Timestamp.dayofyearattributepandas.Timestamp.days_in_monthattributepandas.Timestamp.daysinmonthpropertypandas.Timestamp.dstmethodTimezone ပါရင် timestamp နဲ့ သက်ဆိုင်တဲ့ daylight saving ချိန်ညှိမှုကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.dst()pandas.Timestamp.floormethodTimestamp သို့မဟုတ် ကြာချိန်ကို သတ်မှတ်ထားတဲ့ frequency ရဲ့ ရှေ့အမှတ်အထိ ချပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.floor(freq[, ambiguous, nonexistent])pandas.Timestamp.foldattribute-
ISO နှစ်၊ ရက်သတ္တပတ်နံပါတ်နဲ့ ရက်သတ္တပတ်အတွင်း နေ့နံပါတ်ကနေ timestamp တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.fromisocalendar(year, week, day) -
လက်ခံထားတဲ့ ISO ရက်စွဲ သို့မဟုတ် ရက်စွဲနဲ့ အချိန်စာသားကနေ timestamp တစ်ခု တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.fromisoformat(date_string) -
Gregorian ပြက္ခဒိန်ရဲ့ ရက်အစဉ်နံပါတ်ကနေ timestamp တည်ဆောက်ပေးပါတယ်။ နှစ် 1 ရဲ့ ဇန်နဝါရီ 1 ရက်ကို နံပါတ် 1 လို့ ယူပါတယ်။
ခေါ်သုံးပုံ
Timestamp.fromordinal(ordinal[, tz]) -
POSIX စက္ကန့်တန်ဖိုးကနေ timestamp တည်ဆောက်ပေးပါတယ်။ Timezone ထည့်ရင် အဲဒီ timezone ကို သုံးပြီး မထည့်ရင် စက်ရဲ့ ဒေသအချိန်ကို သုံးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.fromtimestamp(ts[, tz]) pandas.Timestamp.hourattributepandas.Timestamp.is_leap_yearattributepandas.Timestamp.is_month_endattributepandas.Timestamp.is_month_startattributepandas.Timestamp.is_quarter_endattributepandas.Timestamp.is_quarter_startattributepandas.Timestamp.is_year_endattributepandas.Timestamp.is_year_startattribute-
ISO စံအရ နှစ်၊ ရက်သတ္တပတ်နံပါတ်နဲ့ ရက်သတ္တပတ်အတွင်း နေ့နံပါတ်ကို ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.isocalendar() -
Timestamp သို့မဟုတ် ကြာချိန်ကို ISO 8601 စာသားပုံစံနဲ့ ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.isoformat([sep, timespec]) -
ရက်သတ္တပတ်အတွင်း နေ့ကို ကိန်းပြည့်နဲ့ ပြန်ပေးပါတယ်။ တနင်္လာနေ့က 1၊ တနင်္ဂနွေနေ့က 7 ပါ။
ခေါ်သုံးပုံ
Timestamp.isoweekday() pandas.Timestamp.maxattributepandas.Timestamp.microsecondattributepandas.Timestamp.minattributepandas.Timestamp.minuteattributepandas.Timestamp.monthattribute-
လအမည်ကို ပြန်ပေးပါတယ်။ ပြမယ့် ဘာသာစကားကို locale နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Timestamp.month_name([locale]) pandas.Timestamp.nanosecondattribute-
ရက်စွဲနဲ့ timezone ကို ထိန်းထားပြီး နာရီအချိန်ကို ညသန်းခေါင်အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.normalize() pandas.Timestamp.nowmethodသတ်မှတ်လိုက်တဲ့ timezone အတိုင်း လက်ရှိအချိန်ကို ပြန်ပေးပါတယ်။ Period အတွက် သတ်မှတ်ထားတဲ့ frequency အတိုင်း လက်ရှိ period ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.now([tz])pandas.Timestamp.quarterattributepandas.Timestamp.replacemethodနှစ် ဒါမှမဟုတ် နာရီလို ရွေးထားတဲ့ field တွေကို ပြောင်းထားတဲ့ timestamp ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.replace([year, month, day, hour, ...])pandas.Timestamp.resolutionattributepandas.Timestamp.roundmethodကိန်းဂဏန်းကို သတ်မှတ်ထားတဲ့ ဒဿမနေရာအတိုင်း round လုပ်ပေးပါတယ်။ ရက်စွဲနဲ့ အချိန်တန်ဖိုးတွေအတွက် frequency သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Timestamp.round(freq[, ambiguous, nonexistent])pandas.Timestamp.secondattribute-
အချိန်တန်ဖိုးကို %Y-%m-%d လို strftime သတ်မှတ်ချက်တွေနဲ့ စာသားအဖြစ် ပြောင်းပေးပါတယ်။ pandas 3.1.1 မှာ Period.strftime ကို deprecated အဖြစ် သတ်မှတ်ထားပါတယ်။
ခေါ်သုံးပုံ
Timestamp.strftime(format) -
Timestamp.strptime ခေါ်ရင် NotImplementedError တက်ပါတယ်။ Format သတ်မှတ်ပြီး ရက်စွဲစာသား ဖတ်ဖို့ pd.to_datetime(value, format=...) သုံးပါ။
ခေါ်သုံးပုံ
Timestamp.strptime(date_string, format) pandas.Timestamp.timemethodနာရီအချိန်ကို timezone မပါတဲ့ Python time object အဖြစ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.time()-
Timestamp ကို POSIX epoch ကနေ စရေတွက်တဲ့ စက္ကန့်တန်ဖိုးအဖြစ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.timestamp() -
ပြက္ခဒိန် field တွေကို Python standard library ရဲ့ struct_time ပုံစံနဲ့ ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.timetuple() pandas.Timestamp.timetzmethodTimestamp ရဲ့ timezone အချက်အလက် ပါတဲ့ Python time object ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.timetz()-
Timestamp ကို NumPy datetime64 တန်ဖိုးတစ်ခုအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.to_datetime64() -
ရက်စွဲ သို့မဟုတ် timestamp တစ်ခုစီကို Julian day number အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.to_julian_date() -
Timestamp ကို NumPy datetime64 တန်ဖိုးတစ်ခုအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.to_numpy([dtype, copy]) -
ရွေးထားတဲ့ frequency မှာ timestamp ပါဝင်တဲ့ period ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.to_period([freq]) -
Timestamp တွေကို Python ရဲ့ datetime object တွေအဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.to_pydatetime([warn]) pandas.Timestamp.todaymethodစက်ရဲ့ လက်ရှိ ဒေသရက်စွဲနဲ့ အချိန်ကို timestamp အဖြစ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.today([tz])-
Gregorian ပြက္ခဒိန်ရက်အစဉ်နံပါတ်ကို ပြန်ပေးပါတယ်။ နှစ် 1 ရဲ့ ဇန်နဝါရီ 1 ရက်က နံပါတ် 1 ပါ။
ခေါ်သုံးပုံ
Timestamp.toordinal() pandas.Timestamp.tzproperty-
တကယ့်အချိန်တစ်မှတ်တည်းကို ထိန်းထားပြီး အခြား timezone ရဲ့ နာရီအတိုင်း ပြောင်းပြပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.tz_convert(tz) -
Timezone မပါတဲ့ datetime တွေအတွက် timezone သတ်မှတ်ပေးပါတယ်။ Timezone ဖြုတ်တဲ့အခါ ဒေသနာရီပေါ်က အချိန်တန်ဖိုးအတိုင်း ထားပါတယ်။
ခေါ်သုံးပုံ
Timestamp.tz_localize(tz[, ambiguous, ...]) pandas.Timestamp.tzinfopropertypandas.Timestamp.tznamemethodTimezone ပါရင် timezone ရဲ့ အမည် အပြည့် သို့မဟုတ် အတိုကောက်ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.tzname()pandas.Timestamp.unitattribute-
POSIX epoch ကနေ စရေတွက်တဲ့ စက္ကန့်တန်ဖိုးကနေ UTC timestamp တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.utcfromtimestamp(ts) pandas.Timestamp.utcnowmethodလက်ရှိ UTC အချိန်ကို timestamp အဖြစ် ပြန်ပေးပါတယ်။ pandas 3.1.1 နဲ့ ရေးတဲ့ ကုဒ်အသစ်မှာ Timestamp.now(tz="UTC") သုံးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Timestamp.utcnow()-
ဒေသနာရီအချိန်နဲ့ UTC ကြား ကွာခြားချက်ကို ကြာချိန်အဖြစ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.utcoffset() -
Timestamp ကို UTC အဖြစ် ပြောင်းပြီး ပြက္ခဒိန် field တွေကို struct_time ပုံစံနဲ့ ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
Timestamp.utctimetuple() pandas.Timestamp.valueattributepandas.Timestamp.weekattributepandas.Timestamp.weekdaymethodရက်သတ္တပတ်ထဲက နေ့နံပါတ်ကို ပြန်ပေးပါတယ်။ တနင်္လာနေ့က 0၊ တနင်္ဂနွေနေ့က 6 ပါ။
ခေါ်သုံးပုံ
Timestamp.weekday()pandas.Timestamp.weekofyearattributepandas.Timestamp.yearattributepandas.UInt16Dtypeclasspandas.UInt32Dtypeclasspandas.UInt64Dtypeclasspandas.UInt8Dtypeclass
Date Offsets နှင့် Frequencies (186)
pandas._libs.tslibs.offsets.BaseOffsetclasspandas._libs.tslibs.offsets.BHalfYearBeginclasspandas._libs.tslibs.offsets.BHalfYearEndclasspandas._libs.tslibs.offsets.BQuarterBeginclasspandas._libs.tslibs.offsets.BQuarterEndclasspandas._libs.tslibs.offsets.BusinessDayclasspandas._libs.tslibs.offsets.BusinessHourclasspandas._libs.tslibs.offsets.BusinessMonthBeginclasspandas._libs.tslibs.offsets.BusinessMonthEndclasspandas._libs.tslibs.offsets.BYearBeginclasspandas._libs.tslibs.offsets.BYearEndclasspandas._libs.tslibs.offsets.CustomBusinessDayclasspandas._libs.tslibs.offsets.CustomBusinessHourclasspandas._libs.tslibs.offsets.CustomBusinessMonthBeginclasspandas._libs.tslibs.offsets.CustomBusinessMonthEndclasspandas._libs.tslibs.offsets.Dayclasspandas._libs.tslibs.offsets.Easterclasspandas._libs.tslibs.offsets.FY5253classpandas._libs.tslibs.offsets.FY5253Quarterclasspandas._libs.tslibs.offsets.HalfYearBeginclasspandas._libs.tslibs.offsets.HalfYearEndclasspandas._libs.tslibs.offsets.Hourclasspandas._libs.tslibs.offsets.LastWeekOfMonthclasspandas._libs.tslibs.offsets.Microclasspandas._libs.tslibs.offsets.Milliclasspandas._libs.tslibs.offsets.Minuteclasspandas._libs.tslibs.offsets.MonthBeginclasspandas._libs.tslibs.offsets.MonthEndclasspandas._libs.tslibs.offsets.Nanoclasspandas._libs.tslibs.offsets.QuarterBeginclasspandas._libs.tslibs.offsets.QuarterEndclasspandas._libs.tslibs.offsets.Secondclasspandas._libs.tslibs.offsets.SemiMonthBeginclasspandas._libs.tslibs.offsets.SemiMonthEndclasspandas._libs.tslibs.offsets.Tickclasspandas._libs.tslibs.offsets.Weekclasspandas._libs.tslibs.offsets.WeekOfMonthclasspandas._libs.tslibs.offsets.YearBeginclasspandas._libs.tslibs.offsets.YearEndclasspandas.DateOffsetclass-
Frequency သတ်မှတ်ချက်ကို pandas DateOffset object အဖြစ် ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
to_offset(freq[, is_period]) pandas.tseries.holiday.AbstractHolidayCalendarclass-
ပြက္ခဒိန်မှာ သတ်မှတ်ထားတဲ့ စည်းမျဉ်းတွေကို သုံးပြီး ရက်အပိုင်းအခြားတစ်ခုအတွင်း ကျရောက်တဲ့ ရုံးပိတ်ရက်တွေကို စာရင်းထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
AbstractHolidayCalendar.holidays([start, ...]) -
ဒီပြက္ခဒိန်မှာ သတ်မှတ်ထားတဲ့ ရုံးပိတ်ရက် စည်းမျဉ်းတွေကို အခြား ပြက္ခဒိန်ရဲ့ စည်းမျဉ်းတွေနဲ့ ပေါင်းပေးပါတယ်။
ခေါ်သုံးပုံ
AbstractHolidayCalendar.merge(other[, inplace]) -
ပြက္ခဒိန်နှစ်ခုရဲ့ ရုံးပိတ်ရက် စည်းမျဉ်းတွေကို စာရင်းတစ်ခုတည်းအဖြစ် ပေါင်းပေးပါတယ်။
ခေါ်သုံးပုံ
AbstractHolidayCalendar.merge_class(base, other) -
ရုံးပိတ်ရက် စည်းမျဉ်းကို ပြက္ခဒိန်မှာ သတ်မှတ်ထားတဲ့ အမည်နဲ့ ရှာပေးပါတယ်။
ခေါ်သုံးပုံ
AbstractHolidayCalendar.rule_from_name(name) -
အနီးဆုံး ရုံးဖွင့်ရက် စည်းမျဉ်းကို သုံးပြီး ရုံးဖွင့်ရက်တစ်ရက် ရှေ့တိုးပေးပါတယ်။
ခေါ်သုံးပုံ
after_nearest_workday(dt) -
အနီးဆုံး ရုံးဖွင့်ရက် စည်းမျဉ်းကို သုံးပြီး ရုံးဖွင့်ရက်တစ်ရက် နောက်ပြန်ဆုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
before_nearest_workday(dt) -
မှတ်ပုံတင်ထားတဲ့ ပြက္ခဒိန်ကို အမည်နဲ့ ရှာပြီး instance တစ်ခု ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
get_calendar(name) pandas.tseries.holiday.Holidayclass-
သတ်မှတ်ထားတဲ့ ရက်အပိုင်းအခြားအတွင်း ရုံးပိတ်ရက် စည်းမျဉ်းအတိုင်း တကယ်ပိတ်မယ့် ရက်စွဲတွေကို တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Holiday.dates(start_date, end_date[, ...]) -
စည်းမျဉ်းအစုတွေကို ပေါင်းပြီး ရုံးပိတ်ရက် ပြက္ခဒိန် class တစ်ခု တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
HolidayCalendarFactory(name, base, other[, ...]) -
စနေနေ့ကျတဲ့ ရုံးပိတ်ရက်ကို သောကြာနေ့မှာ၊ တနင်္ဂနွေနေ့ကျတာကို တနင်္လာနေ့မှာ သတ်မှတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
nearest_workday(dt) -
စနေ သို့မဟုတ် တနင်္ဂနွေကျတဲ့ ပိတ်ရက်ကို နောက်တစ်ပတ် တနင်္လာနေ့မှာ သတ်မှတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
next_monday(dt) -
စနေနေ့ကျတဲ့ ပိတ်ရက်ကို တနင်္လာနေ့မှာ သတ်မှတ်ပေးပါတယ်။ တနင်္ဂနွေ သို့မဟုတ် တနင်္လာနေ့ကျရင် အင်္ဂါနေ့မှာ သတ်မှတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
next_monday_or_tuesday(dt) -
စနေနေ့နဲ့ တနင်္ဂနွေနေ့ကို ကျော်ပြီး နောက်ရုံးဖွင့်ရက်ကို ရွှေ့ပေးပါတယ်။
ခေါ်သုံးပုံ
next_workday(dt) -
စနေနေ့နဲ့ တနင်္ဂနွေနေ့ကို ရှေ့က သောကြာနေ့ဆီ ပြန်ရွှေ့ပေးပါတယ်။
ခေါ်သုံးပုံ
previous_friday(dt) -
စနေနေ့နဲ့ တနင်္ဂနွေနေ့ကို ကျော်ပြီး ရှေ့က ရုံးဖွင့်ရက်ဆီ နောက်ပြန်ရွှေ့ပေးပါတယ်။
ခေါ်သုံးပုံ
previous_workday(dt) pandas.tseries.holiday.registerfunctionနောက်မှ အမည်နဲ့ ပြန်ရှာနိုင်ဖို့ ရုံးပိတ်ရက် ပြက္ခဒိန် class ကို မှတ်ပုံတင်ပေးပါတယ်။
ခေါ်သုံးပုံ
register(cls)-
တနင်္ဂနွေကျတဲ့ ပိတ်ရက်ကို တနင်္လာနေ့ ရွှေ့ပေးပြီး တခြားနေ့တွေကို မူလအတိုင်း ထားပါတယ်။
ခေါ်သုံးပုံ
sunday_to_monday(dt) pandas.tseries.holiday.USFederalHolidayCalendarclass-
စနေ သို့မဟုတ် တနင်္ဂနွေကျတဲ့ ပိတ်ရက်ကို တနင်္လာနေ့ ရွှေ့ပေးပါတယ်။
ခေါ်သုံးပုံ
weekend_to_monday(dt) pandas.tseries.offsets.BaseOffsetclass-
Frequency နဲ့ သတ်မှတ်ချက် တူညီတဲ့ offset object အသစ်တစ်ခု တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
BaseOffset.copy() pandas.tseries.offsets.BaseOffset.freqstrattribute-
Timestamp က ဒီ offset ရဲ့ စည်းမျဉ်းအရ လကုန်ရက်မှာ ကျမကျ စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
BaseOffset.is_month_end(ts) -
Timestamp က ဒီ offset ရဲ့ စည်းမျဉ်းအရ လအစရက်မှာ ကျမကျ စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
BaseOffset.is_month_start(ts) -
Timestamp က offset ရဲ့ အချိန်ဇယားထဲမှာ ပါမပါ စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
BaseOffset.is_on_offset(dt) -
Timestamp က ဒီ offset ရဲ့ စည်းမျဉ်းအရ သုံးလပတ် အဆုံးရက်မှာ ကျမကျ စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
BaseOffset.is_quarter_end(ts) -
Timestamp က ဒီ offset ရဲ့ စည်းမျဉ်းအရ သုံးလပတ် အစရက်မှာ ကျမကျ စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
BaseOffset.is_quarter_start(ts) -
Timestamp က ဒီ offset ရဲ့ စည်းမျဉ်းအရ နှစ်ကုန်ရက်မှာ ကျမကျ စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
BaseOffset.is_year_end(ts) -
Timestamp က ဒီ offset ရဲ့ စည်းမျဉ်းအရ နှစ်အစရက်မှာ ကျမကျ စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
BaseOffset.is_year_start(ts) pandas.tseries.offsets.BaseOffset.kwdsattributepandas.tseries.offsets.BaseOffset.nattributepandas.tseries.offsets.BaseOffset.nameattributepandas.tseries.offsets.BaseOffset.nanosattributepandas.tseries.offsets.BaseOffset.normalizeattribute-
Offset နဲ့ ကိုက်တဲ့ ရက်ကို မူလအတိုင်း ထားပါတယ်။ မကိုက်ရင် ရှေ့ဘက်က အနီးဆုံးကိုက်တဲ့ ရက်ဆီ နောက်ပြန်ရွှေ့ပေးပါတယ်။
ခေါ်သုံးပုံ
BaseOffset.rollback(dt) -
Offset နဲ့ ကိုက်တဲ့ ရက်ကို မူလအတိုင်း ထားပါတယ်။ မကိုက်ရင် နောက်ဘက်က အနီးဆုံးကိုက်တဲ့ ရက်ဆီ ရှေ့တိုးပေးပါတယ်။
ခေါ်သုံးပုံ
BaseOffset.rollforward(dt) pandas.tseries.offsets.BaseOffset.rule_codeattributepandas.tseries.offsets.BDayattributepandas.tseries.offsets.BHalfYearBeginclasspandas.tseries.offsets.BHalfYearBegin.startingMonthattributepandas.tseries.offsets.BHalfYearEndclasspandas.tseries.offsets.BHalfYearEnd.startingMonthattributepandas.tseries.offsets.BMonthBeginattributepandas.tseries.offsets.BMonthEndattributepandas.tseries.offsets.BQuarterBeginclasspandas.tseries.offsets.BQuarterBegin.startingMonthattributepandas.tseries.offsets.BQuarterEndclasspandas.tseries.offsets.BQuarterEnd.startingMonthattributepandas.tseries.offsets.BusinessDayclasspandas.tseries.offsets.BusinessDay.calendarattributepandas.tseries.offsets.BusinessDay.holidaysattributepandas.tseries.offsets.BusinessDay.offsetattributepandas.tseries.offsets.BusinessDay.weekmaskattributepandas.tseries.offsets.BusinessHourclasspandas.tseries.offsets.BusinessHour.calendarattributepandas.tseries.offsets.BusinessHour.endattributepandas.tseries.offsets.BusinessHour.holidaysattributepandas.tseries.offsets.BusinessHour.offsetattributepandas.tseries.offsets.BusinessHour.startattributepandas.tseries.offsets.BusinessHour.weekmaskattributepandas.tseries.offsets.BusinessMonthBeginclasspandas.tseries.offsets.BusinessMonthEndclasspandas.tseries.offsets.BYearBeginclasspandas.tseries.offsets.BYearBegin.monthattributepandas.tseries.offsets.BYearEndclasspandas.tseries.offsets.BYearEnd.monthattributepandas.tseries.offsets.CBMonthBeginattributepandas.tseries.offsets.CBMonthEndattributepandas.tseries.offsets.CDayattributepandas.tseries.offsets.CustomBusinessDayclasspandas.tseries.offsets.CustomBusinessDay.calendarattributepandas.tseries.offsets.CustomBusinessDay.holidaysattributepandas.tseries.offsets.CustomBusinessDay.offsetattributepandas.tseries.offsets.CustomBusinessDay.weekmaskattributepandas.tseries.offsets.CustomBusinessHourclasspandas.tseries.offsets.CustomBusinessHour.calendarattributepandas.tseries.offsets.CustomBusinessHour.endattributepandas.tseries.offsets.CustomBusinessHour.holidaysattributepandas.tseries.offsets.CustomBusinessHour.offsetattributepandas.tseries.offsets.CustomBusinessHour.startattributepandas.tseries.offsets.CustomBusinessHour.weekmaskattributepandas.tseries.offsets.CustomBusinessMonthBeginclasspandas.tseries.offsets.CustomBusinessMonthBegin.calendarattributepandas.tseries.offsets.CustomBusinessMonthBegin.holidaysattributepandas.tseries.offsets.CustomBusinessMonthBegin.m_offsetattributepandas.tseries.offsets.CustomBusinessMonthBegin.offsetattributepandas.tseries.offsets.CustomBusinessMonthBegin.weekmaskattributepandas.tseries.offsets.CustomBusinessMonthEndclasspandas.tseries.offsets.CustomBusinessMonthEnd.calendarattributepandas.tseries.offsets.CustomBusinessMonthEnd.holidaysattributepandas.tseries.offsets.CustomBusinessMonthEnd.m_offsetattributepandas.tseries.offsets.CustomBusinessMonthEnd.offsetattributepandas.tseries.offsets.CustomBusinessMonthEnd.weekmaskattributepandas.tseries.offsets.DateOffsetclasspandas.tseries.offsets.Dayclasspandas.tseries.offsets.Easterclasspandas.tseries.offsets.FY5253class-
ရက်သတ္တပတ် 52 ပတ် သို့မဟုတ် 53 ပတ်ပါ ဘဏ္ဍာရေးနှစ် offset ရဲ့ သတ်မှတ်ချက်တွေကို ကိုယ်စားပြုတဲ့ နောက်ဆက်စာသားကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
FY5253.get_rule_code_suffix() -
သတ်မှတ်ထားတဲ့ လ၊ ရက်သတ္တပတ်အတွင်း နေ့နဲ့ နယ်နိမိတ်စည်းမျဉ်းကို သုံးပြီး ဘဏ္ဍာရေးနှစ်ဆုံးရက် တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
FY5253.get_year_end(dt) pandas.tseries.offsets.FY5253.startingMonthattributepandas.tseries.offsets.FY5253.variationattributepandas.tseries.offsets.FY5253.weekdayattributepandas.tseries.offsets.FY5253Quarterclass-
ရက်သတ္တပတ် 52 ပတ် သို့မဟုတ် 53 ပတ်ပါ ဘဏ္ဍာရေးနှစ် offset ရဲ့ သတ်မှတ်ချက်တွေကို ကိုယ်စားပြုတဲ့ နောက်ဆက်စာသားကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
FY5253Quarter.get_rule_code_suffix() -
ရက်စွဲ ပါဝင်တဲ့ ဘဏ္ဍာရေးနှစ်မှာ သုံးလပတ်တစ်ခုစီမှာ ရက်သတ္တပတ် ဘယ်နှပတ် ရှိလဲ တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
FY5253Quarter.get_weeks(dt) pandas.tseries.offsets.FY5253Quarter.qtr_with_extra_weekattributepandas.tseries.offsets.FY5253Quarter.startingMonthattributepandas.tseries.offsets.FY5253Quarter.variationattributepandas.tseries.offsets.FY5253Quarter.weekdayattribute-
ရက်စွဲ ပါဝင်တဲ့ ဘဏ္ဍာရေးနှစ်မှာ ရက်သတ္တပတ် 53 ပတ် ပါမပါ စစ်ပေးပါတယ်။
ခေါ်သုံးပုံ
FY5253Quarter.year_has_extra_week(dt) pandas.tseries.offsets.HalfYearBeginclasspandas.tseries.offsets.HalfYearBegin.startingMonthattributepandas.tseries.offsets.HalfYearEndclasspandas.tseries.offsets.HalfYearEnd.startingMonthattributepandas.tseries.offsets.Hourclasspandas.tseries.offsets.LastWeekOfMonthclasspandas.tseries.offsets.LastWeekOfMonth.weekattributepandas.tseries.offsets.LastWeekOfMonth.weekdayattributepandas.tseries.offsets.Microclasspandas.tseries.offsets.Milliclasspandas.tseries.offsets.Minuteclasspandas.tseries.offsets.MonthBeginclasspandas.tseries.offsets.MonthEndclasspandas.tseries.offsets.Nanoclasspandas.tseries.offsets.QuarterBeginclasspandas.tseries.offsets.QuarterBegin.startingMonthattributepandas.tseries.offsets.QuarterEndclasspandas.tseries.offsets.QuarterEnd.startingMonthattributepandas.tseries.offsets.Secondclasspandas.tseries.offsets.SemiMonthBeginclasspandas.tseries.offsets.SemiMonthBegin.day_of_monthattributepandas.tseries.offsets.SemiMonthEndclasspandas.tseries.offsets.SemiMonthEnd.day_of_monthattributepandas.tseries.offsets.Tickclasspandas.tseries.offsets.Weekclasspandas.tseries.offsets.Week.weekdayattributepandas.tseries.offsets.WeekOfMonthclasspandas.tseries.offsets.WeekOfMonth.weekattributepandas.tseries.offsets.WeekOfMonth.weekdayattributepandas.tseries.offsets.YearBeginclasspandas.tseries.offsets.YearBegin.monthattributepandas.tseries.offsets.YearEndclasspandas.tseries.offsets.YearEnd.monthattribute
Resampling (29)
-
တစ်ခုချင်း လည်ပတ်ယူလို့ရအောင် လုပ်ပေးပါတယ်။ DataFrame မှာ column တွေ၊ GroupBy မှာတော့ အုပ်စု key နဲ့ အုပ်စု object ကို တွဲပြီး ရပါတယ်။
ခေါ်သုံးပုံ
Resampler.__iter__() -
agg နဲ့ ခေါ်သုံးပုံတူပြီး operation တစ်ခု သို့မဟုတ် အများကြီးနဲ့ တန်ဖိုးတွေ စုတွက်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.aggregate([func]) -
Row၊ column၊ အုပ်စု သို့မဟုတ် window တစ်ခုစီကို function ဆီ ပေးပြီး တွက်ပါတယ်။ ဘာကို function ဆီ ပေးမလဲဆိုတာ ခေါ်တဲ့ object အမျိုးအစားပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.apply([func]) -
အချိန် index ကို သတ်မှတ်ထားတဲ့ frequency အတိုင်း ပြောင်းပါတယ်။ အသစ်ထွက်လာတဲ့ အချိန်နေရာတွေမှာ တန်ဖိုးလပ်နေပါမယ်။
ခေါ်သုံးပုံ
Resampler.asfreq([fill_value]) -
အချိန်ပိုစိပ်အောင် ပြောင်းလိုက်လို့ လွတ်လာတဲ့ နေရာတွေကို နောက်က တန်ဖိုးနဲ့ ဖြည့်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.bfill([limit]) -
ရွေးထားတဲ့ axis၊ အုပ်စု သို့မဟုတ် window ထဲမှာ တန်ဖိုးရှိတဲ့ entry တွေကို ရေတွက်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.count() -
အချိန်ပိုစိပ်အောင် ပြောင်းလိုက်လို့ လွတ်လာတဲ့ နေရာတွေကို ရှေ့က တန်ဖိုးနဲ့ ဖြည့်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.ffill([limit]) -
အုပ်စု သို့မဟုတ် အချိန်ပိုင်း တစ်ခုစီရဲ့ ပထမတန်ဖိုးကို ယူပါတယ်။ ခွင့်ပြုတဲ့နေရာမှာ ပျောက်နေတဲ့တန်ဖိုးတွေကို ပုံမှန်အားဖြင့် ကျော်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.first([numeric_only, min_count, ...]) -
ပေးထားတဲ့ အုပ်စု key နဲ့ ကိုက်ညီတဲ့ မူလဒေတာတွေကို ပြန်ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Resampler.get_group(name) pandas.api.typing.Resampler.groupspropertypandas.api.typing.Resampler.indicesproperty-
နီးစပ်ရာမှာ ရှိတဲ့တန်ဖိုးတွေကို သုံးပြီး ပျောက်နေတဲ့တန်ဖိုးကို ရွေးထားတဲ့ interpolation နည်းနဲ့ ခန့်မှန်းဖြည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Resampler.interpolate([method, axis, limit, ...]) -
အုပ်စု သို့မဟုတ် အချိန်ပိုင်းတစ်ခုစီရဲ့ နောက်ဆုံးတန်ဖိုးကို ယူပါတယ်။ ခွင့်ပြုတဲ့နေရာမှာ ပျောက်နေတဲ့တန်ဖိုးတွေကို ပုံမှန်အားဖြင့် ကျော်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.last([numeric_only, min_count, skipna]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အကြီးဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Resampler.max([numeric_only, min_count]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေရဲ့ ပျမ်းမျှကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.mean([numeric_only]) -
တန်ဖိုးတွေကို စီလိုက်ရင် အလယ်မှာရှိတဲ့ တန်ဖိုးကို ယူပါတယ်။ အလယ်မှာ နှစ်ခုရှိရင် နှစ်ခုရဲ့ ပျမ်းမျှကို ယူပါတယ်။
ခေါ်သုံးပုံ
Resampler.median([numeric_only]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အငယ်ဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Resampler.min([numeric_only, min_count]) -
Resample လုပ်ထားတဲ့ နေရာအသစ်တွေကို အနီးဆုံးတန်ဖိုးနဲ့ ဖြည့်ပါတယ်။ ဆက်တိုက် ဖြည့်မယ့်အရေအတွက်ကို ကန့်သတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.nearest([limit]) -
မထပ်တဲ့ တန်ဖိုး ဘယ်နှမျိုးရှိလဲ ရေတွက်ပါတယ်။ လက်ခံတဲ့နေရာမှာ dropna=False ပေးရင် တန်ဖိုးပျောက်တာကိုလည်း တစ်မျိုးအဖြစ် ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.nunique() -
အုပ်စု သို့မဟုတ် အချိန်ပိုင်း တစ်ခုစီရဲ့ အဖွင့်၊ အမြင့်ဆုံး၊ အနိမ့်ဆုံးနဲ့ အပိတ်တန်ဖိုးတွေကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.ohlc() -
Method chain ကို မဖြတ်ဘဲ လက်ရှိ object ကို function တစ်ခုဆီ ပေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.pipe(func, *args, **kwargs) -
ရွေးထားတဲ့ axis၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေကို မြှောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Resampler.prod([numeric_only, min_count]) -
တန်ဖိုးတွေကို အစဉ်လိုက်စီလိုက်တဲ့အခါ သတ်မှတ်ထားတဲ့ အချိုးနေရာမှာ ရှိမယ့်တန်ဖိုး (quantile) ကို ခန့်မှန်းပါတယ်။
ခေါ်သုံးပုံ
Resampler.quantile([q]) -
ရွေးထားတဲ့ ဒေတာအတွက် ပျမ်းမျှရဲ့ standard error ကို တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Resampler.sem([ddof, numeric_only]) -
အုပ်စု သို့မဟုတ် အချိန်ပိုင်းတစ်ခုစီရဲ့ row အရေအတွက်ကို တွက်ပါတယ်။ တန်ဖိုးပျောက်နေတဲ့ row တွေကိုပါ ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.size() -
Variance ရဲ့ square root အဖြစ် standard deviation ကို တွက်ပါတယ်။ ဘယ် divisor သုံးမလဲဆိုတာ ddof နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.std([ddof, numeric_only]) -
Axis၊ အုပ်စု သို့မဟုတ် window တစ်ခုစီအတွင်း တန်ဖိုးတွေကို ပေါင်းပါတယ်။ အနည်းဆုံး တန်ဖိုးဘယ်နှခု ရှိရမလဲဆိုတာ လက်ခံတဲ့နေရာမှာ min_count နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.sum([numeric_only, min_count])နမူနာ
orders.set_index("day")["units"].resample("2D").sum(min_count=1) -
ပေးထားတဲ့ operation ကို လုပ်ပြီး မူလဒေတာပုံစံနဲ့ ကိုက်တဲ့ ရလဒ်ထုတ်ပေးပါတယ်။ GroupBy မှာ ရလဒ်တွေကို မူလ row တွေနဲ့ ပြန်တွဲပေးပါတယ်။
ခေါ်သုံးပုံ
Resampler.transform(arg, *args, **kwargs) -
တန်ဖိုးတွေက ပျမ်းမျှနားမှာ ဘယ်လောက်ပြန့်နေသလဲဆိုတာ variance နဲ့ တွက်ပါတယ်။ တွက်ချက်မှုမှာ သုံးမယ့် divisor ကို ddof နဲ့ ထိန်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Resampler.var([ddof, numeric_only])
Window Operations (54)
pandas.api.indexers.BaseIndexerclasspandas.api.indexers.FixedForwardWindowIndexerclass-
agg နဲ့ ခေါ်သုံးပုံတူပြီး operation တစ်ခု သို့မဟုတ် အများကြီးနဲ့ တန်ဖိုးတွေ စုတွက်ပါတယ်။
ခေါ်သုံးပုံ
Expanding.aggregate([func]) -
Row၊ column၊ အုပ်စု သို့မဟုတ် window တစ်ခုစီကို function ဆီ ပေးပြီး တွက်ပါတယ်။ ဘာကို function ဆီ ပေးမလဲဆိုတာ ခေါ်တဲ့ object အမျိုးအစားပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
Expanding.apply(func[, raw, engine, ...]) -
ဂဏန်းဒေတာတွေကြား correlation coefficient တွက်ပေးပါတယ်။ DataFrame မှာ column တစ်ခုစီနဲ့ တခြား column တွေကြား ဆက်နွှယ်မှုကို ဇယားနဲ့ ပြန်ရနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Expanding.corr([other, pairwise, ddof, ...]) -
ရွေးထားတဲ့ axis၊ အုပ်စု သို့မဟုတ် window ထဲမှာ တန်ဖိုးရှိတဲ့ entry တွေကို ရေတွက်ပါတယ်။
ခေါ်သုံးပုံ
Expanding.count([numeric_only]) -
ကိုက်ညီရာ တန်ဖိုးစုံတွဲတွေကို သုံးပြီး ဂဏန်းဒေတာနှစ်ခု အတူတကွ ပြောင်းလဲပုံ (covariance) ကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
Expanding.cov([other, pairwise, ddof, ...]) -
တိုးချဲ့လာတဲ့ window တစ်ခုစီရဲ့ ဘယ်ဘက်ဆုံးမှာရှိတဲ့ တန်ဖိုးကို ယူပါတယ်။
ခေါ်သုံးပုံ
Expanding.first([numeric_only]) -
ဒေတာဖြန့်ကျက်ပုံမှာ အစွန်းဘက်တန်ဖိုးတွေ ဘယ်လောက်များလဲ သိနိုင်တဲ့ excess kurtosis ကို ခန့်မှန်းပါတယ်။
ခေါ်သုံးပုံ
Expanding.kurt([numeric_only]) -
တိုးချဲ့လာတဲ့ window တစ်ခုစီရဲ့ ညာဘက်ဆုံးမှာရှိတဲ့ တန်ဖိုးကို ယူပါတယ်။
ခေါ်သုံးပုံ
Expanding.last([numeric_only]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အကြီးဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Expanding.max([numeric_only, engine, ...]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေရဲ့ ပျမ်းမျှကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
Expanding.mean([numeric_only, engine, ...])နမူနာ
orders["units"].expanding(min_periods=1).mean() -
တန်ဖိုးတွေကို စီလိုက်ရင် အလယ်မှာရှိတဲ့ တန်ဖိုးကို ယူပါတယ်။ အလယ်မှာ နှစ်ခုရှိရင် နှစ်ခုရဲ့ ပျမ်းမျှကို ယူပါတယ်။
ခေါ်သုံးပုံ
Expanding.median([numeric_only, engine, ...]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အငယ်ဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Expanding.min([numeric_only, engine, ...]) -
မထပ်တဲ့ တန်ဖိုး ဘယ်နှမျိုးရှိလဲ ရေတွက်ပါတယ်။ လက်ခံတဲ့နေရာမှာ dropna=False ပေးရင် တန်ဖိုးပျောက်တာကိုလည်း တစ်မျိုးအဖြစ် ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
Expanding.nunique([numeric_only]) -
Method chain ကို မဖြတ်ဘဲ လက်ရှိ object ကို function တစ်ခုဆီ ပေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Expanding.pipe(func, *args, **kwargs) -
တန်ဖိုးတွေကို အစဉ်လိုက်စီလိုက်တဲ့အခါ သတ်မှတ်ထားတဲ့ အချိုးနေရာမှာ ရှိမယ့်တန်ဖိုး (quantile) ကို ခန့်မှန်းပါတယ်။
ခေါ်သုံးပုံ
Expanding.quantile(q[, interpolation, ...]) -
တန်ဖိုးတွေကို အစဉ်လိုက် နံပါတ်ပေးပြီး တန်ဖိုးတူတဲ့အခါ ဘယ်လိုအဆင့် သတ်မှတ်မလဲ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Expanding.rank([method, ascending, pct, ...]) -
ရွေးထားတဲ့ ဒေတာအတွက် ပျမ်းမျှရဲ့ standard error ကို တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Expanding.sem([ddof, numeric_only]) -
ဂဏန်းဒေတာ ဖြန့်ကျက်ပုံက ဘယ်လောက် မညီမျှလဲဆိုတာ skewness နဲ့ တွက်ပါတယ်။
ခေါ်သုံးပုံ
Expanding.skew([numeric_only]) -
Variance ရဲ့ square root အဖြစ် standard deviation ကို တွက်ပါတယ်။ ဘယ် divisor သုံးမလဲဆိုတာ ddof နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Expanding.std([ddof, numeric_only, engine, ...]) -
Axis၊ အုပ်စု သို့မဟုတ် window တစ်ခုစီအတွင်း တန်ဖိုးတွေကို ပေါင်းပါတယ်။ အနည်းဆုံး တန်ဖိုးဘယ်နှခု ရှိရမလဲဆိုတာ လက်ခံတဲ့နေရာမှာ min_count နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Expanding.sum([numeric_only, engine, ...]) -
တန်ဖိုးတွေက ပျမ်းမျှနားမှာ ဘယ်လောက်ပြန့်နေသလဲဆိုတာ variance နဲ့ တွက်ပါတယ်။ တွက်ချက်မှုမှာ သုံးမယ့် divisor ကို ddof နဲ့ ထိန်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Expanding.var([ddof, numeric_only, engine, ...]) -
ဂဏန်းဒေတာတွေကြား correlation coefficient တွက်ပေးပါတယ်။ DataFrame မှာ column တစ်ခုစီနဲ့ တခြား column တွေကြား ဆက်နွှယ်မှုကို ဇယားနဲ့ ပြန်ရနိုင်ပါတယ်။
ခေါ်သုံးပုံ
ExponentialMovingWindow.corr([other, ...]) -
ကိုက်ညီရာ တန်ဖိုးစုံတွဲတွေကို သုံးပြီး ဂဏန်းဒေတာနှစ်ခု အတူတကွ ပြောင်းလဲပုံ (covariance) ကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
ExponentialMovingWindow.cov([other, ...]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေရဲ့ ပျမ်းမျှကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
ExponentialMovingWindow.mean([numeric_only, ...])နမူနာ
orders["units"].ewm(alpha=0.5).mean() -
Variance ရဲ့ square root အဖြစ် standard deviation ကို တွက်ပါတယ်။ ဘယ် divisor သုံးမလဲဆိုတာ ddof နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
ExponentialMovingWindow.std([bias, numeric_only]) -
Axis၊ အုပ်စု သို့မဟုတ် window တစ်ခုစီအတွင်း တန်ဖိုးတွေကို ပေါင်းပါတယ်။ အနည်းဆုံး တန်ဖိုးဘယ်နှခု ရှိရမလဲဆိုတာ လက်ခံတဲ့နေရာမှာ min_count နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
ExponentialMovingWindow.sum([numeric_only, ...]) -
တန်ဖိုးတွေက ပျမ်းမျှနားမှာ ဘယ်လောက်ပြန့်နေသလဲဆိုတာ variance နဲ့ တွက်ပါတယ်။ တွက်ချက်မှုမှာ သုံးမယ့် divisor ကို ddof နဲ့ ထိန်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
ExponentialMovingWindow.var([bias, numeric_only]) -
agg နဲ့ ခေါ်သုံးပုံတူပြီး operation တစ်ခု သို့မဟုတ် အများကြီးနဲ့ တန်ဖိုးတွေ စုတွက်ပါတယ်။
ခေါ်သုံးပုံ
Rolling.aggregate([func]) -
Row၊ column၊ အုပ်စု သို့မဟုတ် window တစ်ခုစီကို function ဆီ ပေးပြီး တွက်ပါတယ်။ ဘာကို function ဆီ ပေးမလဲဆိုတာ ခေါ်တဲ့ object အမျိုးအစားပေါ် မူတည်ပါတယ်။
ခေါ်သုံးပုံ
Rolling.apply(func[, raw, engine, ...]) -
ဂဏန်းဒေတာတွေကြား correlation coefficient တွက်ပေးပါတယ်။ DataFrame မှာ column တစ်ခုစီနဲ့ တခြား column တွေကြား ဆက်နွှယ်မှုကို ဇယားနဲ့ ပြန်ရနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Rolling.corr([other, pairwise, ddof, ...]) -
ရွေးထားတဲ့ axis၊ အုပ်စု သို့မဟုတ် window ထဲမှာ တန်ဖိုးရှိတဲ့ entry တွေကို ရေတွက်ပါတယ်။
ခေါ်သုံးပုံ
Rolling.count([numeric_only]) -
ကိုက်ညီရာ တန်ဖိုးစုံတွဲတွေကို သုံးပြီး ဂဏန်းဒေတာနှစ်ခု အတူတကွ ပြောင်းလဲပုံ (covariance) ကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
Rolling.cov([other, pairwise, ddof, ...]) -
ရွေ့လျား window တစ်ခုစီရဲ့ ဘယ်ဘက်ဆုံး တန်ဖိုးကို ယူပါတယ်။
ခေါ်သုံးပုံ
Rolling.first([numeric_only]) -
ဒေတာဖြန့်ကျက်ပုံမှာ အစွန်းဘက်တန်ဖိုးတွေ ဘယ်လောက်များလဲ သိနိုင်တဲ့ excess kurtosis ကို ခန့်မှန်းပါတယ်။
ခေါ်သုံးပုံ
Rolling.kurt([numeric_only]) -
ရွေ့လျား window တစ်ခုစီရဲ့ ညာဘက်ဆုံး တန်ဖိုးကို ယူပါတယ်။
ခေါ်သုံးပုံ
Rolling.last([numeric_only]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အကြီးဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Rolling.max([numeric_only, engine, ...]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက တန်ဖိုးတွေရဲ့ ပျမ်းမျှကို တွက်ပါတယ်။
ခေါ်သုံးပုံ
Rolling.mean([numeric_only, engine, ...]) -
တန်ဖိုးတွေကို စီလိုက်ရင် အလယ်မှာရှိတဲ့ တန်ဖိုးကို ယူပါတယ်။ အလယ်မှာ နှစ်ခုရှိရင် နှစ်ခုရဲ့ ပျမ်းမျှကို ယူပါတယ်။
ခေါ်သုံးပုံ
Rolling.median([numeric_only, engine, ...]) -
ရွေးထားတဲ့ ဒေတာ၊ အုပ်စု သို့မဟုတ် window ထဲက အငယ်ဆုံးတန်ဖိုးကို ရှာပါတယ်။
ခေါ်သုံးပုံ
Rolling.min([numeric_only, engine, ...]) -
မထပ်တဲ့ တန်ဖိုး ဘယ်နှမျိုးရှိလဲ ရေတွက်ပါတယ်။ လက်ခံတဲ့နေရာမှာ dropna=False ပေးရင် တန်ဖိုးပျောက်တာကိုလည်း တစ်မျိုးအဖြစ် ထည့်တွက်ပါတယ်။
ခေါ်သုံးပုံ
Rolling.nunique([numeric_only]) -
Method chain ကို မဖြတ်ဘဲ လက်ရှိ object ကို function တစ်ခုဆီ ပေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Rolling.pipe(func, *args, **kwargs) -
တန်ဖိုးတွေကို အစဉ်လိုက်စီလိုက်တဲ့အခါ သတ်မှတ်ထားတဲ့ အချိုးနေရာမှာ ရှိမယ့်တန်ဖိုး (quantile) ကို ခန့်မှန်းပါတယ်။
ခေါ်သုံးပုံ
Rolling.quantile(q[, interpolation, ...]) -
တန်ဖိုးတွေကို အစဉ်လိုက် နံပါတ်ပေးပြီး တန်ဖိုးတူတဲ့အခါ ဘယ်လိုအဆင့် သတ်မှတ်မလဲ ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Rolling.rank([method, ascending, pct, ...]) -
ရွေးထားတဲ့ ဒေတာအတွက် ပျမ်းမျှရဲ့ standard error ကို တွက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Rolling.sem([ddof, numeric_only]) -
ဂဏန်းဒေတာ ဖြန့်ကျက်ပုံက ဘယ်လောက် မညီမျှလဲဆိုတာ skewness နဲ့ တွက်ပါတယ်။
ခေါ်သုံးပုံ
Rolling.skew([numeric_only]) -
Variance ရဲ့ square root အဖြစ် standard deviation ကို တွက်ပါတယ်။ ဘယ် divisor သုံးမလဲဆိုတာ ddof နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Rolling.std([ddof, numeric_only, engine, ...]) -
Axis၊ အုပ်စု သို့မဟုတ် window တစ်ခုစီအတွင်း တန်ဖိုးတွေကို ပေါင်းပါတယ်။ အနည်းဆုံး တန်ဖိုးဘယ်နှခု ရှိရမလဲဆိုတာ လက်ခံတဲ့နေရာမှာ min_count နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Rolling.sum([numeric_only, engine, ...])နမူနာ
orders["units"].rolling(2, min_periods=1).sum() -
တန်ဖိုးတွေက ပျမ်းမျှနားမှာ ဘယ်လောက်ပြန့်နေသလဲဆိုတာ variance နဲ့ တွက်ပါတယ်။ တွက်ချက်မှုမှာ သုံးမယ့် divisor ကို ddof နဲ့ ထိန်းနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Rolling.var([ddof, numeric_only, engine, ...]) -
ရွေ့လျား window တစ်ခုစီမှာ သတ်မှတ်ထားတဲ့ weight တွေနဲ့ အလေးချိန်ပေး ပျမ်းမျှ တွက်ပါတယ်။
ခေါ်သုံးပုံ
Window.mean([numeric_only]) -
ရွေ့လျား window တစ်ခုစီအတွက် အလေးချိန်ပေး standard deviation တွက်ပါတယ်။
ခေါ်သုံးပုံ
Window.std([ddof, numeric_only]) -
ရွေ့လျား window တစ်ခုစီမှာ weight တွေ ထည့်တွက်ပြီး တန်ဖိုးတွေကို စုစုပေါင်း ပေးပါတယ်။
ခေါ်သုံးပုံ
Window.sum([numeric_only]) -
ရွေ့လျား window တစ်ခုစီအတွက် အလေးချိန်ပေး variance တွက်ပါတယ်။
ခေါ်သုံးပုံ
Window.var([ddof, numeric_only])
Missing Values (2)
pandas.NAdataInt64 နဲ့ boolean လို missing value လက်ခံတဲ့ pandas dtype တွေမှာ ပျောက်နေတဲ့ တန်ဖိုးတစ်ခုကို ကိုယ်စားပြုပါတယ်။
pandas.NaTdataပျောက်နေတဲ့ datetime၊ timedelta သို့မဟုတ် period တန်ဖိုးကို ကိုယ်စားပြုပါတယ်။
ဇယားပုံစံပြင်ခြင်း (42)
pandas.io.formats.style.Stylerclass-
Column တစ်ခုလုံး၊ row တစ်ခုလုံး သို့မဟုတ် ဇယားတစ်ခုလုံးကို style function ထဲ ထည့်ပြီး CSS style ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.apply(func[, axis, subset]) -
Index label သို့မဟုတ် column label တွေကို level တစ်ဆင့်စီ style function နဲ့ ပြင်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.apply_index(func[, axis, level]) -
Cell တွေရဲ့ နောက်ခံအရောင်ကို ကိန်းဂဏန်းတန်ဖိုးနဲ့ ရွေးထားတဲ့ color map အလိုက် ပြောင်းပြပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.background_gradient([cmap, low, ...]) -
ကိန်းဂဏန်း cell တစ်ခုစီထဲမှာ တန်ဖိုးအလိုက် အလျားလိုက် bar ဆွဲပြပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.bar([subset, axis, color, cmap, ...]) -
သတ်မှတ်ပြီးသား ပြသပုံတွေကို ဖယ်ပြီး Styler ကို မူလပုံစံ ပြန်ထားပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.clear() -
ပြသတဲ့ ရလဒ်မှာ လက်ရှိဇယားအောက်ကို အခြား Styler တစ်ခု ထပ်ဆက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.concat(other) pandas.io.formats.style.Styler.envattribute-
အခြား Styler တစ်ခုမှာ ပြန်သုံးလို့ရတဲ့ style သတ်မှတ်ချက်တွေကို စုထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.export() -
Cell ထဲက တန်ဖိုး ပြသပုံကို ပြောင်းပေးပါတယ်။ ဥပမာ ဒဿမ ဘယ်နှလုံးပြမလဲ၊ တန်ဖိုးပျောက်ရင် ဘာစာသားပြမလဲ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
Styler.format([formatter, subset, na_rep, ...])နမူနာ
orders.style.format({"units": "{:.0f}"}, na_rep="—") -
Index label ဒါမှမဟုတ် column ခေါင်းစဉ် ပြသပုံကို သတ်မှတ်ပါတယ်။
ခေါ်သုံးပုံ
Styler.format_index([formatter, axis, ...]) -
Index သို့မဟုတ် column axis အမည်ကို ဘယ်လို ပြမလဲ သတ်မှတ်ပါတယ်။
ခေါ်သုံးပုံ
Styler.format_index_names([formatter, axis, ...]) -
ကိုယ်ပိုင် HTML template သုံးတဲ့ Styler subclass တစ်ခု တည်ဆောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.from_custom_template(searchpath[, ...]) -
အောက်ခံဒေတာကို ထိန်းထားပြီး output ထဲက label၊ row သို့မဟုတ် column တွေကို ဖျောက်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.hide([subset, axis, level, names]) -
သတ်မှတ်ထားတဲ့ အနိမ့်ဆုံးနဲ့ အမြင့်ဆုံးကြားက တန်ဖိုးတွေကို style သတ်မှတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.highlight_between([subset, color, ...]) -
ရွေးထားတဲ့ ဒေတာထဲမှာ အမြင့်ဆုံးဖြစ်တဲ့ တန်ဖိုးအားလုံးကို အရောင်နဲ့ ခွဲပြပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.highlight_max([subset, color, axis, ...]) -
ရွေးထားတဲ့ ဒေတာထဲမှာ အနိမ့်ဆုံးဖြစ်တဲ့ တန်ဖိုးအားလုံးကို အရောင်နဲ့ ခွဲပြပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.highlight_min([subset, color, axis, ...]) -
တန်ဖိုးပျောက်နေတဲ့ cell တွေကို သီးခြား style နဲ့ ပြပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.highlight_null([color, subset, props])နမူနာ
orders.style.highlight_null(color="gold") -
ရွေးထားတဲ့ quantile နယ်နိမိတ်နှစ်ခုကြားက cell တွေကို highlight လုပ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.highlight_quantile([subset, color, ...]) pandas.io.formats.style.Styler.loaderattribute-
Cell တစ်ခုစီရဲ့ တန်ဖိုးကို style function ထဲ ထည့်ပြီး CSS သတ်မှတ်ချက် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.map(func[, subset]) -
Index သို့မဟုတ် column ရဲ့ label တစ်ခုစီကို style function နဲ့ ပြောင်းပြပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.map_index(func[, axis, level]) -
Method chain ကို မဖြတ်ဘဲ လက်ရှိ object ကို function တစ်ခုဆီ ပေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
Styler.pipe(func, *args, **kwargs) -
ထုတ်ပြတဲ့ ဇယားမှာ မူလ label တွေအစား သတ်မှတ်ထားတဲ့ label တွေကို ပြပါတယ်။
ခေါ်သုံးပုံ
Styler.relabel_index(labels[, axis, level]) -
ထုတ်ပြတဲ့ ဇယားအတွက် caption ထည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.set_caption(caption) -
ရွေးထားတဲ့ cell တွေမှာ CSS property တစ်မျိုးတည်းကို သတ်မှတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.set_properties([subset]) -
ဇယားကို scroll လုပ်တဲ့အခါ ရွေးထားတဲ့ ခေါင်းစဉ်တွေကို ဆက်မြင်ရအောင် ထားပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.set_sticky([axis, pixel_size, levels]) -
ထုတ်ပေးတဲ့ HTML table element မှာ attribute တွေ ထည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.set_table_attributes(attributes) -
ထုတ်ပေးတဲ့ ဇယားအတွက် သက်ဆိုင်တဲ့ CSS selector နဲ့ style တွေကို သတ်မှတ်ပါတယ်။
ခေါ်သုံးပုံ
Styler.set_table_styles([table_styles, ...]) -
ထုတ်ပေးတဲ့ ဇယားထဲမှာ cell တစ်ခုစီကို CSS class သတ်မှတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.set_td_classes(classes) -
HTML output မှာ သက်ဆိုင်တဲ့ cell တွေပေါ် cursor တင်တဲ့အခါ ပြမယ့် စာသား ထည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.set_tooltips(ttips[, props, ...]) -
ဇယားနဲ့ ဇယားထဲက HTML element တွေကို ခွဲခေါ်ဖို့ identifier သတ်မှတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.set_uuid(uuid) pandas.io.formats.style.Styler.template_htmlattributepandas.io.formats.style.Styler.template_html_styleattributepandas.io.formats.style.Styler.template_html_tableattributepandas.io.formats.style.Styler.template_latexattributepandas.io.formats.style.Styler.template_stringattributepandas.io.formats.style.Styler.template_typstattribute-
ကိန်းဂဏန်းတန်ဖိုးနဲ့ ရွေးထားတဲ့ color map အလိုက် cell ထဲက စာသားကို အရောင်ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.text_gradient([cmap, low, high, ...]) -
ဖတ်ရှုလို့လွယ်တဲ့ စာသားအဖြစ် ပြန်ပေးပါတယ်။ Buffer ထည့်ပေးရင် အဲဒီထဲကို ရေးပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.to_string([buf, encoding, ...]) -
Style သတ်မှတ်ထားတဲ့ ဇယားကို Typst source အဖြစ် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.to_typst([buf, encoding, ...]) -
Styler.export နဲ့ ထုတ်ထားပြီး ပြန်သုံးလို့ရတဲ့ သတ်မှတ်ချက်တွေကို လက်ရှိဇယားမှာ အသုံးချပေးပါတယ်။
ခေါ်သုံးပုံ
Styler.use(styles)
ဇယားပုံဆွဲခြင်း (12)
pandas.plotting.andrews_curvesfunctionRecord တစ်ခုစီရဲ့ ကိန်းဂဏန်း feature တွေကနေ မျဉ်းကွေးတစ်ခု ဆွဲပေးပါတယ်။ Class အလိုက် အရောင်ခွဲလို့လည်း ရပါတယ်။
ခေါ်သုံးပုံ
andrews_curves(frame, class_column[, ax, ...])-
Series တစ်ခုကို သူ့ကိုယ်ပိုင်တန်ဖိုးတွေ နေရာရွှေ့ထားတဲ့ ပုံစံနဲ့ နှိုင်းပြီး lag တစ်ခုစီရဲ့ correlation ကို ဆွဲပြပါတယ်။
ခေါ်သုံးပုံ
autocorrelation_plot(series[, ax]) pandas.plotting.bootstrap_plotfunctionBootstrap နည်းနဲ့ အကြိမ်ကြိမ် ပြန်ရွေးထားတဲ့ sample တွေရဲ့ တွက်ချက်ရလဒ်တွေ ဘယ်လို ကွာသလဲ ပုံနဲ့ပြပါတယ်။
ခေါ်သုံးပုံ
bootstrap_plot(series[, fig, size, samples])pandas.plotting.boxplotfunctionအလယ်တန်ဖိုး၊ ဒေတာပျံ့နှံ့ပုံနဲ့ ဖြစ်နိုင်တဲ့ outlier တွေကို ယှဉ်ကြည့်ဖို့ box plot ဆွဲပါတယ်။
ခေါ်သုံးပုံ
boxplot(data[, column, by, ax, fontsize, ...])-
Matplotlib မှတ်ပုံတင်စာရင်းကနေ pandas ရက်စွဲ converter တွေကို ဖယ်ပေးပါတယ်။
ခေါ်သုံးပုံ
deregister_matplotlib_converters() pandas.plotting.lag_plotfunctionဒီအမှတ်နဲ့ အစောပိုင်းအမှတ်ကို အတွဲလိုက် ဆွဲပြပြီး အစဉ်လိုက်ဒေတာမှာ ဆက်စပ်ပုံ ရှိမရှိ ကြည့်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
lag_plot(series[, lag, ax])-
ဒေတာတစ်ခုစီကို variable axis အများအပြားကို ဖြတ်သွားတဲ့ မျဉ်းတစ်ကြောင်းနဲ့ ပြပြီး class အလိုက် ခွဲပေးပါတယ်။
ခေါ်သုံးပုံ
parallel_coordinates(frame, class_column[, ...]) pandas.plotting.plot_paramsdatapandas.plotting.radvizfunctionFeature တစ်ခုစီရဲ့ anchor ကို အခြေခံပြီး သက်ဆိုင်ရာတန်ဖိုး အချိုးအစားအလိုက် ဒေတာအမှတ်တွေကို စက်ဝိုင်းထဲ နေရာချပေးပါတယ်။
ခေါ်သုံးပုံ
radviz(frame, class_column[, ax, color, ...])-
pandas ရဲ့ အချိန်တန်ဖိုးတွေကို Matplotlib နဲ့ ပုံဆွဲနိုင်ဖို့ converter တွေ မှတ်ပုံတင်ပေးပါတယ်။
ခေါ်သုံးပုံ
register_matplotlib_converters() pandas.plotting.scatter_matrixfunctionကိန်းဂဏန်း DataFrame column တစ်တွဲစီအတွက် scatter plot နဲ့ column တစ်ခုချင်းအတွက် plot ဆွဲပေးပါတယ်။
ခေါ်သုံးပုံ
scatter_matrix(frame[, alpha, figsize, ax, ...])pandas.plotting.tablefunctionpandas တန်ဖိုးတွေ ပါတဲ့ ဇယားကို Matplotlib Axes ထဲ ထည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
table(ax, data, **kwargs)
Options နှင့် Settings (6)
pandas.describe_optionfunctionOption တစ်ခုရဲ့ အသုံးပြုပုံ၊ မူလတန်ဖိုးနဲ့ လက်ရှိတန်ဖိုးကို ပြပေးပါတယ်။
ခေါ်သုံးပုံ
pd.describe_option([pat, _print_desc])pandas.get_optionfunctionpandas option တစ်ခုရဲ့ လက်ရှိတန်ဖိုးကို ဖတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.get_option(pat)နမူနာ
pd.get_option("display.max_rows")pandas.option_contextfunctionwith block အတွင်းမှာ pandas option တွေကို ယာယီပြောင်းပြီး block က ထွက်တဲ့အခါ မူလတန်ဖိုးတွေ ပြန်ထားပေးပါတယ်။
ခေါ်သုံးပုံ
pd.option_context(*args)နမူနာ
with pd.option_context("display.max_rows", 4): print(orders)pandas.reset_optionfunctionpandas option တစ်ခု သို့မဟုတ် အများအပြားကို မူလတန်ဖိုးတွေဆီ ပြန်ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
pd.reset_option(pat)pandas.set_eng_float_formatfunctionဒဿမကိန်းတွေကို 1000 ရဲ့ ထပ်ကိန်းတွေကို အခြေခံတဲ့ ပုံစံနဲ့ ပြဖို့ formatter သတ်မှတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.set_eng_float_format([accuracy, use_eng_prefix])pandas.set_optionfunctionpandas ရဲ့ configuration option တစ်ခု ဒါမှမဟုတ် အများအပြားကို ပြောင်းပေးပါတယ်။
ခေါ်သုံးပုံ
pd.set_option(*args)
Extensions (57)
pandas.api.extensions.ExtensionArrayclass-
ကိုယ်ပိုင် extension array မှာ cumsum လို တစ်ဆင့်ချင်း စုတွက်တဲ့ လုပ်ဆောင်ချက်ကို သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray._accumulate(name, *, skipna=True, **kwargs) -
Extension type တူတဲ့ array တွေကို array တစ်ခုအဖြစ် ဆက်ပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray._concat_same_type(to_concat) -
List ပုံစံတန်ဖိုးတွေကို ဖြန့်ထုတ်ပြီး မူလ entry တစ်ခုစီကနေ တန်ဖိုး ဘယ်နှခုထွက်လဲဆိုတာပါ ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray._explode() -
Extension array ရဲ့ တန်ဖိုးတစ်ခုစီကို ပြသလို့ရတဲ့ စာသားအဖြစ် ပြောင်းပေးမယ့် function ကို သတ်မှတ်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray._formatter(boxed=False) -
factorize လုပ်ပြီး ရလာတဲ့ မထပ်တဲ့တန်ဖိုးတွေကနေ extension array ကို ပြန်တည်ဆောက်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray._from_factorized(values, original) -
တန်ဖိုးတစ်ခုချင်းစီ ပေးပြီး ကိုယ်ပိုင် extension array တည်ဆောက်ပုံကို သတ်မှတ်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray._from_sequence(scalars, *, dtype=None, copy=False) -
စာသားအစဉ်တစ်ခုကို ဖတ်ပြီး သတ်မှတ်ထားတဲ့ extension dtype ရဲ့ တန်ဖိုးတွေအဖြစ် ပြောင်းပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray._from_sequence_of_strings(strings, *, dtype, copy=False) -
ကိုယ်ပိုင် extension array ရဲ့ တန်ဖိုးတစ်ခုစီအတွက် hash တွက်ပုံကို သတ်မှတ်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray._hash_pandas_object(*, encoding, hash_key, categorize) pandas.api.extensions.ExtensionArray._is_monotonic_decreasingpropertypandas.api.extensions.ExtensionArray._is_monotonic_increasingproperty-
Extension array မှာ တန်ဖိုးပျောက်နေရင် ရှေ့က သို့မဟုတ် နောက်က ရှိပြီးသားတန်ဖိုးနဲ့ ဖြည့်ပုံကို သတ်မှတ်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray._pad_or_backfill(*, method, limit=None, limit_area=None, copy=True) -
Extension array ထဲက တန်ဖိုးတွေကို စုတွက်ပြီး တန်ဖိုးတစ်ခု သို့မဟုတ် အရှည် ၁ ရှိတဲ့ ရလဒ် ပြန်ပေးပုံကို သတ်မှတ်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray._reduce(name, *, skipna=True, keepdims=False, **kwargs) -
Extension array ကို အစဉ်လိုက် စီဖို့ နှိုင်းယှဉ်မယ့် တန်ဖိုးတွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray._values_for_argsort() -
factorize လုပ်ဖို့ တန်ဖိုးတွေနဲ့ ပျောက်နေတဲ့တန်ဖိုးကို ကိုယ်စားပြုတဲ့ သင်္ကေတကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray._values_for_factorize() -
တန်ဖိုးတွေကို အစဉ်လိုက် စီဖို့ ယူရမယ့် နေရာနံပါတ်တွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.argsort(*, ascending=True, kind='quicksort', na_position='last', **kwargs) -
ဒေတာအမျိုးအစား (dtype) ပြောင်းပါတယ်။ DataFrame မှာ column တစ်ခုချင်းစီအတွက် မတူတဲ့ dtype ကို mapping နဲ့ သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.astype(dtype, copy=True) -
လက်ရှိ object ကို မိတ္တူကူးပါတယ်။ HDFStore မှာ သိမ်းထားတဲ့ ဒေတာကို တခြားဖိုင်တစ်ခုထဲ ကူးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.copy() -
ရွေးထားတဲ့ axis၊ အုပ်စု သို့မဟုတ် window ထဲမှာ တန်ဖိုးရှိတဲ့ entry တွေကို ရေတွက်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.count() -
တန်ဖိုးပျောက်နေတဲ့ entry တွေကို ဖယ်ပါတယ်။ DataFrame မှာ subset နဲ့ စစ်မယ့် column တွေကို ရွေးနိုင်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.dropna() pandas.api.extensions.ExtensionArray.dtypeproperty-
ထပ်နေတဲ့ တန်ဖိုး ဒါမှမဟုတ် row တွေကို True/False နဲ့ မှတ်ပေးပါတယ်။ keep=False ဆို ထပ်နေတဲ့ အုပ်စုတိုင်းရဲ့ entry အားလုံးကို မှတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.duplicated(keep='first') -
Object နှစ်ခုရဲ့ အရွယ်အစားနဲ့ တန်ဖိုးတွေ တူမတူ စစ်ပါတယ်။ နှစ်ခုလုံးမှာ တန်ဖိုးပျောက်တဲ့နေရာ တူရင် အဲဒီနေရာကို တူတယ်လို့ ယူပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.equals(other) -
မထပ်တဲ့ တန်ဖိုးတစ်မျိုးစီအတွက် ကိန်းပြည့် code တစ်ခု သတ်မှတ်ပြီး code တွေနဲ့ မထပ်တဲ့တန်ဖိုးစာရင်းကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.factorize(use_na_sentinel=True) -
ပျောက်နေတဲ့တန်ဖိုးတွေကို ဖြည့်ပါတယ်။ တန်ဖိုးတစ်ခုတည်းနဲ့ ဖြည့်နိုင်သလို label တူတဲ့တန်ဖိုးတွေနဲ့လည်း တွဲဖြည့်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.fillna(value, limit=None, copy=True) -
သတ်မှတ်ထားတဲ့နေရာမှာ တန်ဖိုးအသစ်ထည့်ပါတယ်။ DataFrame မှာ column အသစ်ထည့်ပေးပြီး မူလအတိုင်းဆို column အမည် ထပ်လို့မရပါ။
ခေါ်သုံးပုံ
ExtensionArray.insert(loc, item) -
နီးစပ်ရာမှာ ရှိတဲ့တန်ဖိုးတွေကို သုံးပြီး ပျောက်နေတဲ့တန်ဖိုးကို ရွေးထားတဲ့ interpolation နည်းနဲ့ ခန့်မှန်းဖြည့်ပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.interpolate(*, method, axis, index, limit, limit_direction, limit_area, copy, **kwargs) -
တန်ဖိုးတစ်ခုစီက ပေးထားတဲ့ အစုထဲမှာ ပါမပါ စစ်ပြီး True သို့မဟုတ် False ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.isin(values) -
တန်ဖိုး ပျောက်နေသလား စစ်ပါတယ်။ တန်ဖိုးတစ်ခုကို ပေးရင် True/False တစ်ခု၊ array ပုံစံ ပေးရင် နေရာတစ်ခုစီအတွက် True/False တွေ ပြန်ရပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.isna() -
index နေရာမှာရှိတဲ့ တန်ဖိုးတစ်ခုကို Python scalar အဖြစ် ထုတ်ယူပါတယ်။ index မပေးရင် array မှာ တန်ဖိုးတစ်ခုတည်း ရှိရပါမယ်။
ခေါ်သုံးပုံ
ExtensionArray.item(index=None) pandas.api.extensions.ExtensionArray.nbytespropertypandas.api.extensions.ExtensionArray.ndimproperty-
Index သို့မဟုတ် array ရဲ့ တန်ဖိုးတွေကို တစ်ဖက်မြင် NumPy array အဖြစ် ထုတ်ပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.ravel(order='C') -
တန်ဖိုးတစ်ခုစီကို သတ်မှတ်ထားတဲ့ အကြိမ်အရေအတွက်အတိုင်း ထပ်ပေးပါတယ်။ စာသားမှာတော့ စာသားတစ်ခုစီအတွင်း ထပ်ရေးပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.repeat(repeats, axis=None) -
အစဉ်လိုက် စီထားတဲ့ ဒေတာထဲကို တန်ဖိုးအသစ် ထည့်တဲ့အခါ အစဉ်မပျက်စေမယ့် နေရာတွေကို ရှာပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.searchsorted(value, side='left', sorter=None) pandas.api.extensions.ExtensionArray.shapeproperty-
တန်ဖိုးတွေကို သတ်မှတ်ထားတဲ့ နေရာအရေအတွက်အတိုင်း ရွှေ့ပြီး လွတ်လာတဲ့ နေရာတွေကို ပေးထားတဲ့တန်ဖိုးနဲ့ ဖြည့်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.shift(periods=1, fill_value=None) -
Extension array ကို မူလ object ပေါ်မှာပဲ ပြန်စီပါတယ်။ တန်ဖိုးပျောက်နေတဲ့နေရာတွေ ဘယ်ဘက်ထားမလဲ ရွေးနိုင်ပါတယ်။ ပြောင်းလို့မရတဲ့ array အမျိုးအစားတွေမှာ သုံးလို့မရနိုင်ပါ။
ခေါ်သုံးပုံ
ExtensionArray.sort(*, ascending=True, kind='quicksort', na_position='last') -
ပေးထားတဲ့ နေရာနံပါတ်တွေအတိုင်း တန်ဖိုးတွေကို ရွေးယူပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.take(indices, *, allow_fill=False, fill_value=None) -
တန်ဖိုးတွေကို Python list အဖြစ် ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.tolist() -
တန်ဖိုးတွေကို ပြန်မစီဘဲ ပထမဆုံးတွေ့တဲ့ အစဉ်အတိုင်း မထပ်တဲ့တန်ဖိုးတွေကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.unique() -
Object ရဲ့ dtype နဲ့ သိမ်းဆည်းပုံအရ ခွင့်ပြုတဲ့ တခြား view သို့မဟုတ် ပုံစံနဲ့ တန်ဖိုးတွေကို ကြည့်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionArray.view(dtype=None) pandas.api.extensions.ExtensionDtypeclass-
Extension dtype ရဲ့ တန်ဖိုးတွေကို သိမ်းတဲ့ array class ကို ပြန်ပေးပါတယ်။
ခေါ်သုံးပုံ
ExtensionDtype.construct_array_type() -
Extension dtype လက်ခံတဲ့ စာသားကနေ dtype object တစ်ခု ဖန်တီးပါတယ်။
ခေါ်သုံးပုံ
ExtensionDtype.construct_from_string(string) -
ပေးထားတဲ့ တန်ဖိုး သို့မဟုတ် dtype သတ်မှတ်ချက်က extension dtype class နဲ့ ကိုက်ညီသလား စစ်ပါတယ်။
ခေါ်သုံးပုံ
ExtensionDtype.is_dtype(dtype) pandas.api.extensions.ExtensionDtype.kindpropertypandas.api.extensions.ExtensionDtype.na_valuepropertypandas.api.extensions.ExtensionDtype.namepropertypandas.api.extensions.ExtensionDtype.namespropertypandas.api.extensions.ExtensionDtype.typeproperty-
DataFrame မှာ သတ်မှတ်ထားတဲ့ attribute အမည်နဲ့ ခေါ်သုံးနိုင်အောင် class တစ်ခုကို decorator နဲ့ မှတ်ပုံတင်ပါတယ်။
ခေါ်သုံးပုံ
api.extensions.register_dataframe_accessor(name) -
ကိုယ်ပိုင် ExtensionDtype ကို pandas က အမည်နဲ့ သိနိုင်အောင် မှတ်ပုံတင်ပါတယ်။
ခေါ်သုံးပုံ
api.extensions.register_extension_dtype(cls) -
Index မှာ သတ်မှတ်ထားတဲ့ attribute အမည်နဲ့ ခေါ်သုံးနိုင်အောင် class တစ်ခုကို decorator နဲ့ မှတ်ပုံတင်ပါတယ်။
ခေါ်သုံးပုံ
api.extensions.register_index_accessor(name) -
Series မှာ သတ်မှတ်ထားတဲ့ attribute အမည်နဲ့ ခေါ်သုံးနိုင်အောင် class တစ်ခုကို decorator နဲ့ မှတ်ပုံတင်ပါတယ်။
ခေါ်သုံးပုံ
api.extensions.register_series_accessor(name) -
ပေးထားတဲ့ ကိန်းပြည့် သို့မဟုတ် True/False indexer ကို array နဲ့ ကိုက်ညီအောင် ပြောင်းပြီး မှန်ကန်မှု စစ်ပါတယ်။
ခေါ်သုံးပုံ
api.indexers.check_array_indexer(array, indexer) pandas.arrays.NumpyExtensionArrayclass
Testing၊ Errors နှင့် Warnings (52)
pandas.errors.AbstractMethodErrorexceptionpandas.errors.AttributeConflictWarningexceptionpandas.errors.CategoricalConversionWarningexceptionpandas.errors.ChainedAssignmentErrorexceptionpandas.errors.ClosedFileErrorexceptionpandas.errors.CSSWarningexceptionpandas.errors.DatabaseErrorexceptionpandas.errors.DataErrorexceptionpandas.errors.DtypeWarningexceptionpandas.errors.DuplicateLabelErrorexceptionpandas.errors.EmptyDataErrorexceptionpandas.errors.IncompatibilityWarningexceptionpandas.errors.IncompatibleFrequencyexceptionpandas.errors.IndexingErrorexceptionpandas.errors.IntCastingNaNErrorexceptionpandas.errors.InvalidColumnNameexceptionpandas.errors.InvalidComparisonexceptionpandas.errors.InvalidIndexErrorexceptionpandas.errors.InvalidVersionexceptionpandas.errors.LossySetitemErrorexceptionpandas.errors.MergeErrorexceptionpandas.errors.NoBufferPresentexceptionpandas.errors.NullFrequencyErrorexceptionpandas.errors.NumbaUtilErrorexceptionpandas.errors.NumExprClobberingErrorexceptionpandas.errors.OptionErrorexceptionpandas.errors.OutOfBoundsDatetimeexceptionpandas.errors.OutOfBoundsTimedeltaexceptionpandas.errors.Pandas4Warningexceptionpandas.errors.Pandas5Warningexceptionpandas.errors.PandasChangeWarningexceptionpandas.errors.PandasDeprecationWarningexceptionpandas.errors.PandasFutureWarningexceptionpandas.errors.PandasPendingDeprecationWarningexceptionpandas.errors.ParserErrorexceptionpandas.errors.ParserWarningexceptionpandas.errors.PerformanceWarningexceptionpandas.errors.PossibleDataLossErrorexceptionpandas.errors.PossiblePrecisionLossexceptionpandas.errors.PyperclipExceptionexceptionpandas.errors.PyperclipWindowsExceptionexceptionpandas.errors.SpecificationErrorexceptionpandas.errors.UndefinedVariableErrorexceptionpandas.errors.UnsortedIndexErrorexceptionpandas.errors.UnsupportedFunctionCallexceptionpandas.errors.ValueLabelTypeMismatchexceptionpandas.show_versionsfunctionပြဿနာရှာဖို့ သို့မဟုတ် bug report မှာ ထည့်ဖို့ Python ပတ်ဝန်းကျင်နဲ့ dependency တွေရဲ့ version တွေကို output မှာ ပြပေးပါတယ်။
ခေါ်သုံးပုံ
pd.show_versions([as_json])pandas.testfunctionစက်မှာ ထည့်ထားတဲ့ pandas tests တွေကို pytest နဲ့ run ပေးပါတယ်။
ခေါ်သုံးပုံ
pd.test([extra_args, run_doctests])-
Extension array နှစ်ခုကို နှိုင်းယှဉ်ပြီး သတ်မှတ်ထားတဲ့ တူညီမှုစစ်ဆေးချက်တွေနဲ့ မကိုက်ရင် AssertionError တင်ပေးပါတယ်။
ခေါ်သုံးပုံ
testing.assert_extension_array_equal(left, right) -
Test မှာ မျှော်မှန်းထားတဲ့ DataFrame နဲ့ တကယ်ရတဲ့ DataFrame ကို နှိုင်းယှဉ်ပေးပါတယ်။ Label၊ dtype နဲ့ ကိန်းဂဏန်းတန်ဖိုး ကွာဟမှု ခွင့်ပြုချက်တွေကို သတ်မှတ်နိုင်ပါတယ်။
ခေါ်သုံးပုံ
testing.assert_frame_equal(left, right[, ...])နမူနာ
pd.testing.assert_frame_equal(orders, orders.copy()) -
Index နှစ်ခုကို နှိုင်းယှဉ်ပြီး သတ်မှတ်ထားတဲ့ တူညီမှုစစ်ဆေးချက်တွေနဲ့ မကိုက်ရင် AssertionError တင်ပေးပါတယ်။
ခေါ်သုံးပုံ
testing.assert_index_equal(left, right[, ...]) -
Test မှာ Series နှစ်ခုကို တန်ဖိုး၊ label နဲ့ သတ်မှတ်ထားတဲ့ metadata တွေပါ ထည့်ပြီး နှိုင်းယှဉ်ပေးပါတယ်။
ခေါ်သုံးပုံ
testing.assert_series_equal(left, right[, ...])နမူနာ
pd.testing.assert_series_equal(orders["units"], orders["units"].copy())
Typing Aliases (71)
pandas.api.typing.aliasesmodulepandas.api.typing.aliases.AggFuncTypetypepandas.api.typing.aliases.AlignJointypepandas.api.typing.aliases.AnyAlltypepandas.api.typing.aliases.AnyArrayLiketypepandas.api.typing.aliases.ArrayLiketypepandas.api.typing.aliases.AstypeArgtypepandas.api.typing.aliases.Axestypepandas.api.typing.aliases.Axistypepandas.api.typing.aliases.ColspaceArgTypetypepandas.api.typing.aliases.CompressionOptionstypepandas.api.typing.aliases.CorrelationMethodtypepandas.api.typing.aliases.CSVEnginetypepandas.api.typing.aliases.DropKeeptypepandas.api.typing.aliases.Dtypetypepandas.api.typing.aliases.DtypeArgtypepandas.api.typing.aliases.DtypeBackendtypepandas.api.typing.aliases.DtypeObjtypepandas.api.typing.aliases.ExcelWriterIfSheetExiststypepandas.api.typing.aliases.ExcelWriterMergeCellstypepandas.api.typing.aliases.FilePathtypepandas.api.typing.aliases.FillnaOptionstypepandas.api.typing.aliases.FloatFormatTypetypepandas.api.typing.aliases.FormattersTypetypepandas.api.typing.aliases.FromDictOrienttypepandas.api.typing.aliases.HTMLFlavorstypepandas.api.typing.aliases.IgnoreRaisetypepandas.api.typing.aliases.IndexLabeltypepandas.api.typing.aliases.InterpolateOptionstypepandas.api.typing.aliases.IntervalClosedTypetypepandas.api.typing.aliases.IntervalLeftRighttypepandas.api.typing.aliases.JoinHowtypepandas.api.typing.aliases.JoinValidatetypepandas.api.typing.aliases.JSONEnginetypepandas.api.typing.aliases.JSONSerializabletypepandas.api.typing.aliases.ListLiketypepandas.api.typing.aliases.MergeHowtypepandas.api.typing.aliases.MergeValidatetypepandas.api.typing.aliases.NaPositiontypepandas.api.typing.aliases.NsmallestNlargestKeeptypepandas.api.typing.aliases.OpenFileErrorstypepandas.api.typing.aliases.Orderedtypepandas.api.typing.aliases.ParquetCompressionOptionstypepandas.api.typing.aliases.QuantileInterpolationtypepandas.api.typing.aliases.ReadBuffertypepandas.api.typing.aliases.ReadCsvBuffertypepandas.api.typing.aliases.ReadPickleBuffertypepandas.api.typing.aliases.ReindexMethodtypepandas.api.typing.aliases.Scalartypepandas.api.typing.aliases.ScalarIndexertypepandas.api.typing.aliases.SequenceIndexertypepandas.api.typing.aliases.SequenceNotStrtypepandas.api.typing.aliases.SliceTypetypepandas.api.typing.aliases.SortKindtypepandas.api.typing.aliases.StorageOptionstypepandas.api.typing.aliases.Suffixestypepandas.api.typing.aliases.TakeIndexertypepandas.api.typing.aliases.TimeAmbiguoustypepandas.api.typing.aliases.TimedeltaConvertibleTypestypepandas.api.typing.aliases.TimeGrouperOrigintypepandas.api.typing.aliases.TimeNonexistenttypepandas.api.typing.aliases.TimestampConvertibleTypestypepandas.api.typing.aliases.TimeUnittypepandas.api.typing.aliases.ToStataByteordertypepandas.api.typing.aliases.ToTimestampHowtypepandas.api.typing.aliases.UpdateJointypepandas.api.typing.aliases.UsecolsArgTypetypepandas.api.typing.aliases.WindowingRankTypetypepandas.api.typing.aliases.WriteBuffertypepandas.api.typing.aliases.WriteExcelBuffertypepandas.api.typing.aliases.XMLParserstype