<｜begin▁of▁sentence｜>### Instruction:
Given a graph with edges [(0, 1), (1, 2), (2, 3), (3, 4), (4, 0)] and edge weights [1, 2, 3, 4, 5], how do you export the edge attributes into a pandas DataFrame using igraph's get_edge_dataframe function?
### Response:
import igraph as ig
import pandas as pd

# Create a graph
g = ig.Graph(edges=[(0, 1), (1, 2), (2, 3), (3, 4), (4, 0)])
# Add edge attributes
g.es['weight'] = [1, 2, 3, 4, 5]
# Export edges to DataFrame
df_edges = g.get_edge_dataframe()
# The result is a pandas DataFrame
print(df_edges)
<|EOT|>
