Skip to content

Instantly share code, notes, and snippets.

@subhsaha
Created November 17, 2018 13:28
Show Gist options
  • Save subhsaha/553a420072f8dc1bb481b55582510c39 to your computer and use it in GitHub Desktop.
Save subhsaha/553a420072f8dc1bb481b55582510c39 to your computer and use it in GitHub Desktop.
Length of National Highways
import pandas as pd
df = pd.DataFrame(pd.read_csv("Lengthofnationalhighway.csv"))
df = df.melt(id_vars=['Loc'])
df.to_csv("Lengthofnationalhighwaytwo.csv",index = False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment