Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
*M-UNKNOWN MEXICAN TRUCKING COMPANY
8CON CONTSHIP CONTAINER LINE
99M UNKNOWN MEXICAN OVERLAND CARRIER
AAAB AAA MOTORS
AAAC AAACTION TRANSPORTATION INC
AAAD A A A DELIVERY INC
AAAG ATC LOGISTICS INC
AAAO AAMODT INC
AAAU ASIA CONTAINER LEASING CO LTD
AAAW AAA WALKER TRANSPORTATION SERVICES
@kelvintaywl
kelvintaywl / split.py
Last active May 9, 2024 11:39
Python Script to split CSV files into smaller files based on number of lines
import csv
import sys
import os
# example usage: python split.py example.csv 200
# above command would split the `example.csv` into smaller CSV files of 200 rows each (with header included)
# if example.csv has 401 rows for instance, this creates 3 files in same directory:
# - `example_1.csv` (row 1 - 200)
# - `example_2.csv` (row 201 - 400)
# - `example_3.csv` (row 401)
@charlietsai
charlietsai / pretty_print_df.py
Created November 9, 2016 00:26
Pretty print Pandas DataFrame
from tabulate import tabulate
def pretty_print_df(df):
print tabulate(df, headers='keys', tablefmt='psql')
@russellsamora
russellsamora / us_county_latlng.csv
Last active June 13, 2024 10:46
US counties with fips code, name, and lat lng
fips_code name lng lat
01059 Franklin -87.843283 34.44238135
13111 Fannin -84.31929617 34.86412558
19109 Kossuth -94.20689787 43.20413984
40115 Ottawa -94.81058917 36.83587796
42115 Susquehanna -75.80090451 41.82127676
40053 Grant -97.78493404 36.79651364
31029 Chase -101.6979407 40.52371008
29213 Taney -93.04127586 36.65473646
32510 Carson City -119.7473502 39.15108405