Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- board_df = pd.read_csv('game_board.csv')
- #print(board_df[6:9]['H']) - с 6 по 8 строки выходят
- #print(board_df[6:9, 'H']) - Cокращенная запись,
- # Но ошибка TypeError: '(slice(6, 9, None), 'H')' is an invalid key
- #print(board_df.loc[6:9, 'H']) - ВЕРНЫЙ вывод, но нужно сокращенной записью
- #print(board_df[board_df[:, 'H'] == 1])
- print(board_df[board_df[:,'H'] == 1]) # TypeError: '(slice(None, None, None), 'H')' is an invalid key
- # напишите ваш код здесь
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement