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 numpy as np | |
import pandas as pd | |
N = 20 | |
rand_matrix = np.asarray([random.randrange(1,11)/10 for _ in range(1, N*N+1) ]).reshape(N,N) | |
data = np.flip(np.triu(rand_matrix), 1) | |
df = pd.DataFrame(data, index=pd.date_range(start='2015-01-01', freq='MS', periods=N),\ | |
columns = range(1,N+1)) | |
df[1]=1 |
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
=VALUE(REGEXREPLACE(REGEXEXTRACT(C8;"€([0-9]*\,[0-9]+[0-9]+)");",";"")) |
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 pprint | |
def pprint_full(x): | |
pd.set_option('display.max_rows', len(x)) | |
pd.set_option('display.max_columns', None) | |
pd.set_option('display.width', 2000) | |
pd.set_option('display.float_format', '{:20,.2f}'.format) | |
pd.set_option('display.max_colwidth', -1) | |
#print(x) | |
pprint.pprint(x) | |
pd.reset_option('display.max_rows') |
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
seq1 = ['good', 'bad', 'ugly'] | |
seq2 = ['child', 'man', 'woman'] | |
zipped = zip(seq1, seq2) | |
starzipped = zip(*[seq1, seq2]) | |
for el in starzipped: print(el) |
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
df = pd.DataFrame({'order_id': ['A', 'B'], | |
'address': [{'city': "NY", 'latitude': 2.12, 'longitude' : 3.12,'country_code' : "US"}, | |
{'city': "KL", 'latitude': 12.12, 'longitude' : 23.12,'country_code' : "MY"}]}, | |
columns= ['order_id', 'address']) | |
new_cols = ['city', 'country_code'] | |
for col in new_cols: | |
df['address_{}'.format(col)] = df['address'].map(lambda x: np.nan if pd.isnull(x) else x[col]) |
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
pd.DataFrame({'order_id': ['A', 'B'], | |
'items': [[{'item': 1, 'color': 'blue' }, | |
{'item': 2, 'color': 'red' }], | |
[{'item': 3, 'color': 'green'}, | |
{'item': 2, 'color': 'pink' }]]}, | |
columns= ['order_id', 'items']) | |
pd.DataFrame({'order_id': ['A', 'A', 'B', 'B'], | |
'product_id': [1, 2, 3, 2], | |
'product_color': ['blue', 'red', 'green', 'pink'] }, |
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
Komponente | Kurzbeschreibung | Argumente dafür | Kosten | |
---|---|---|---|---|
MailChimp | Sehr verbreitetes Newsletter-Versand-System | Gute Integration mit anderen Systemen. Großer Funktionsumfang | Kostenloser Plan verfügbar | |
MailMunch | Shopify App für automatische Pop-up's | granulare Einstellmöglichkeiten für Pop-up's | Kostenloser Plan verfügbar. Nächste Stufe ab 12$/Monat | |
Coupon Carrier | Shopify App für das Weiterreichen von Gutschein-Codes an Mailchimp | Leicht zu bedienen | Verbrauchsabhängige Kosten im Cent Bereich pro versendeten Code | |
Bulk Discounts | Shopify App für Gutschein-Codes | leichtes Erzeugen einer großen Anzahl von Gutscheinen | Kostenloser Plan verfügbar |
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 csv | |
reader = csv.reader(open('products.csv')) | |
products_list = [] | |
first_of_group = "" | |
for row in reader: | |
product_name, feature1, feature2 = row | |
product_dict = {} | |
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
=value(regexreplace(regexreplace(REGEXREPLACE(B19;"€"; ""); ",";"");"\.";",")) |
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 | |
import numpy as np | |
from random import randint | |
df = pd.DataFrame(np.random.randint(0,10,size=(10, 3)), columns=list('ABC'), index=range(1,11)) |
NewerOlder