Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import numpy as np
- import pandas as pd
- df = pd.read_csv('tripadvisor_hotel_reviews.csv')
- df1 = df[df['Rating'] == 1]
- print(df1.head())
- df1.to_csv('onestar.csv', index = False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement