Created
May 23, 2019 21:17
-
-
Save pjastr/441bccba847122e3640c22bac5c79c31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
data = pd.read_csv("miasta.csv", sep=";", index_col=0) | |
data2 = data.stack() | |
data3 = data2[data2 > 0] | |
data4 = data3.drop_duplicates(keep="first") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment