Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

keep 0 in front of number pandas read csv

import csv
from pandas import read_csv

dataframe = read_csv('projects.csv', converters={'project_id': lambda x: str(x)})
print dataframe
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #front #number #pandas #read #csv
ADD COMMENT
Topic
Name
4+6 =