<｜begin▁of▁sentence｜>### Instruction:
Given a pandas DataFrame representing an adjacency matrix with columns and index as ['A', 'B'] and values [[0, 1], [1, 0]], how can you create and display the edges of a graph using NetworkX?
### Response:
import pandas as pd
import networkx as nx

# Create a pandas DataFrame representing an adjacency matrix
adj_matrix = pd.DataFrame([[0, 1], [1, 0]], columns=['A', 'B'], index=['A', 'B'])

# Create a graph from the adjacency matrix
G = nx.from_pandas_adjacency(adj_matrix)

# Print the created graph
print(G.edges())
<|EOT|>
