#!/usr/bin/env python3

import pandas as pd
from numpy import random,zeros,transpose
from sys import argv

def makeseries(n,k):
    scale=5.0
    names=[]
    a=zeros((n,k),dtype='float')
    for i in range(n):
            s=random.rand()
            for j in range(k):
                    a[i][j]+=random.randn()*s*scale
            names.append("s"+str(i+1))
    return pd.DataFrame(transpose(a),columns=names)

def main():
    if len(argv)<3:
        n=10 # nombre de colonnes
        k=20 # nombre de lignes
    else:
        n=int(argv[1])
        k=int(argv[2])
    df=makeseries(n,k)
    df.to_csv("series"+str(n)+".csv",index=None)

if __name__=="__main__":
    main()

#!/usr/bin/env python3

import pandas as pd
from numpy import random,zeros,transpose
from sys import argv

def makeseries(n,k):
    scale=5.0
    names=[]
    a=zeros((n,k),dtype='float')
    for i in range(n):
            s=random.rand()
            for j in range(k):
                    a[i][j]+=random.randn()*s*scale
            names.append("s"+str(i+1))
    return pd.DataFrame(transpose(a),columns=names)

def main():
    if len(argv)<3:
        n=10 # nombre de colonnes
        k=20 # nombre de lignes
    else:
        n=int(argv[1])
        k=int(argv[2])
    df=makeseries(n,k)
    df.to_csv("series"+str(n)+".csv",index=None)

if __name__=="__main__":
    main()

#!/usr/bin/env python3 # nombre de colonnes # nombre de lignes