Skip to content

Instantly share code, notes, and snippets.

@pjastr
Last active May 9, 2019 13:47
Show Gist options
  • Save pjastr/ea5396c92ab03a49319705e5eaab0e65 to your computer and use it in GitHub Desktop.
Save pjastr/ea5396c92ab03a49319705e5eaab0e65 to your computer and use it in GitHub Desktop.
import pandas as pd

data = pd.read_csv('jajka1.csv', sep=';', index_col=0, encoding="cp1250")
data2 = data.stack()
data3 = data2.str.replace(',', '.').astype('float')

srednia = data3.mean()

minCena = data3.min()
maxCena = data3.max()
lokMin = data3[data3 == minCena]
lokMax = data3[data3 == maxCena]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment