The goal of this project is to learn python internals by creating a clone of well-known pandas.DataFrame.
- Initialize empty SimpleDF:
df = SimpleDF() - Initialize SimpleDF using dict:
df = SimpleDF({'A': 1}) - Check length of DF:
len(df)
- Get value using getters:
df.A - Get value using brackets:
df['A']
- Compare SimpleDF to each other:
df1.equals(df2) - Check SimpleDF truthness of any boolean condition:
df.A > 0 - Filter SimpleDF by single column values:
df[df.A > 0]
- Concat two SimpleDFs:
df1.append(df2) - Slice SimpleDF by ranges:
df.iloc[1:2] - Get SimpleDF values by arrays of indexes:
df.iloc[[1, 2, 3], [0, 2]]