Skip to content

Instantly share code, notes, and snippets.

View pkafei's full-sized avatar
💫

Portia Burton pkafei

💫
View GitHub Profile
@DianaEromosele
DianaEromosele / Change "origin" of your GIT repository
Created August 7, 2016 00:31
Change "origin" of your GIT repository
$ git remote rm origin
$ git remote add origin git@github.com:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
@bsweger
bsweger / useful_pandas_snippets.md
Last active April 19, 2024 18:04
Useful Pandas Snippets

Useful Pandas Snippets

A personal diary of DataFrame munging over the years.

Data Types and Conversion

Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)

@lisafeets
lisafeets / JohnExp.csv
Last active August 29, 2015 14:02
choropleth map of Kitzhaber Expenditures
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
state value
Arizona 193.11
California 382921.38
Florida 17500
Georga 1680
Illinois 4600.77
Massachusetts 964.31
New Hampshire 250
New York 240
Oregon 825379.78