<｜begin▁of▁sentence｜>### Instruction:
Given a set of edgelist lines representing a bipartite graph with edge weights, how can I create a NetworkX bipartite graph while also converting the node labels to integers and the edge weights to floats?
### Response:
from networkx.algorithms import bipartite
lines = ["1 2 {'weight':3}", "2 3 {'weight':27}", "3 4 {'weight':3.0}"]
G = bipartite.parse_edgelist(lines, nodetype=int, data=(('weight', float),))
for edge in sorted(G.edges(data=True)):
    print(edge)
<|EOT|>
