how to index/query pandas dataframe in MATLAB

12 ビュー (過去 30 日間)
Jin Young Jeon
Jin Young Jeon 2019 年 3 月 26 日
コメント済み: Walter Roberson 2019 年 3 月 26 日
Hello,
I have a Python script that I run on MATLAB, which returns a variable in pandas dataframe named onset
Typing onset returns:
Python DataFrame with properties:
T: [1×1 py.pandas.core.frame.DataFrame]
at: [1×1 py.pandas.core.indexing._AtIndexer]
axes: [1×2 py.list]
blocks: [1×1 py.dict]
columns: [1×1 py.pandas.core.indexes.base.Index]
empty: 0
iat: [1×1 py.pandas.core.indexing._iAtIndexer]
iloc: [1×1 py.pandas.core.indexing._iLocIndexer]
index: [1×1 py.pandas.core.indexes.range.RangeIndex]
is_copy: [1×1 py.NoneType]
ix: [1×1 py.pandas.core.indexing._IXIndexer]
loc: [1×1 py.pandas.core.indexing._LocIndexer]
ndim: 2
shape: [1×2 py.tuple]
size: 2000
style: [1×1 py.pandas.io.formats.style.Styler]
values: [1×1 py.numpy.ndarray]
In Python, I would do something like onset.iloc[1]['condition'] to get the condition of index 1 item. How can I do so in MATLAB?
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 3 月 26 日
Experiment with onset.iloc(1).condition

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by