When you have this kind of data frame
I want to extract only rows with 10 stars and print them out on the screen, what should I do? I don't know if I should use the ix function or the ioc function. I don't even know how to use those functions in the first place ㅠ<
python pandas
I'm not sure if I can help you right now, but...
df = pd.read_csv(...)
condition = df['star'] == 10
df[condition]
You can import only rows with a star of 10.
© 2024 OneMinuteCode. All rights reserved.