Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print(df)
- >>
- +---------+---------+
- | ID| Type|
- +---------+---------+
- | AAA| A|
- | BBB| B|
- | CCC| B|
- | DDD| A|
- | EEE| B|
- | FFF| A|
- | GGG| B|
- +---------+---------+
- X = 2
- new_df = do_something(df, X)
- print(df)
- >>
- +---------+---------+
- | ID| Type|
- +---------+---------+
- | AAA| A|
- | DDD| A|
- | BBB| B|
- | CCC| B|
- +---------+---------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement