complete rework
scalar
dios.loc[scalar,scalar] -> scalar
dios.iloc[int,int] -> scalar
Series
dios['a'] -> pd.Series
dios[slice] -> pd.Series
dios.loc[x,scalar] -> pd.Series
-
dios.iloc[x,scalar] -> pd.Series
with x a slice, or iterabel, bool-list, bool-series
column-label Series
dios.loc[scalar] -> pd.Series
dios.iloc[int] -> pd.Series
dios.loc[scalar, x] -> pd.Series
-
dios.iloc[scalar, x] -> pd.Series
with x a slice, or iterabel, bool-list, bool-series
dios
dios[iterable] -> dios
-
dios[bool-series] -> dios
(slices columns) -
dios[boolx] -> dios
(with x dios/df/nested-list) dios.iloc[x,y] -> pd.Series
-
dios.iloc[x,y] -> pd.Series
with x/y a slice, or iterabel, bool-list, bool-series
Merge request reports
Activity
Filter activity
Haven't looked into the code yet, but the following points are a bit unclear to me:
- Series:
- I think
dios[slice] -> pd.Series
should bedios[slice] -> dios
instead. If you use aslice
on apd.DataFrame
pandas returns apd.DataFrame
. -
dios.iloc[x,scalar] -> pd.Series
should bedios.iloc[x, int] -> pd.Series
as I think,iloc
should only supportint
-scalars
- I think
Apart from that, I think the choices are reasonable.
- Series:
yes you're right in all points, and it is implemented that way.
-
dios[slice]
indeed return a dios -
dios.iloc[x,int]
is's just a typo
Edited by Bert Palm-
Please register or sign in to reply