pandana/loaders/pandash5.py
def network_to_pandas_hdf5(network, filename, rm_nodes=None):
    """
    Save a Network's data to a Pandas HDFStore.

    Parameters
    ----------
    network : pandana.Network
    filename : str
    rm_nodes : array_like
        A list, array, Index, or Series of node IDs that should *not*
        be saved as part of the Network.

    """
    if rm_nodes is not None:
        nodes, edges = remove_nodes(network, rm_nodes)
    else:
        nodes, edges = network.nodes_df, network.edges_df

    with pd.HDFStore(filename, mode='w') as store:
        store['nodes'] = nodes
        store['edges'] = edges

        store['two_way'] = pd.Series([network._twoway])
        store['impedance_names'] = pd.Series(network.impedance_names)
def network_to_pandas_hdf5(network, filename, rm_nodes=None):
    if rm_nodes is not None:
        nodes, edges = remove_nodes(network, rm_nodes)
    else:
        nodes, edges = network.nodes_df, network.edges_df

    with pd.HDFStore(filename, mode='w') as store:
        store['nodes'] = nodes
        store['edges'] = edges

        store['two_way'] = pd.Series([network._twoway])
        store['impedance_names'] = pd.Series(network.impedance_names)
def network_to_pandas_hdf5 ( network , filename , rm_nodes = None ) : if rm_nodes is not None : nodes , edges = remove_nodes ( network , rm_nodes ) else : nodes , edges = network . nodes_df , network . edges_df with pd . HDFStore ( filename , mode = 'w' ) as store : store [ 'nodes' ] = nodes store [ 'edges' ] = edges store [ 'two_way' ] = pd . Series ( [ network . _twoway ] ) store [ 'impedance_names' ] = pd . Series ( network . impedance_names )
Save a Network's data to a Pandas HDFStore.

    Parameters
    ----------
    network : pandana.Network
    filename : str
    rm_nodes : array_like
        A list, array, Index, or Series of node IDs that should *not*
        be saved as part of the Network.
Save a Network s data to a Pandas HDFStore .