kit-algo / ULTRA

UnLimited TRAnsfers for Efficient Multimodal Journey Planning
MIT License
59 stars 125 forks source link

csv file -> binary file #2

Closed mengzhibin closed 1 month ago

mengzhibin commented 3 years ago

could you help tell how to convert csv file to binary file? is there any python script or c++?

Ravitejarao333 commented 8 months ago

Here's a Python script using the pandas library to convert a CSV file to a binary file : csv to binary

code : **import pandas as pd

def csv_to_binary(csv_file, binary_file): df = pd.read_csv(csv_file) df.to_pickle(binary_file)