Untitled - MARKUP 0.40 KB
                                
                                    with open('tekst1.txt', 'r+',encoding='UTF8') as f:
    s = f.read()
    f.seek(7)
    f.write('Olsztyn')
print(f.closed)


# next zad
import numpy as np
data = np.genfromtxt('jajka.csv', delimiter=";", dtype=None,encoding='Windows-1250')

data = np.char.replace(data,',','-')
print(type(data))
data[data=='']='nan'
print(data)
prices =data[1::,1::].astype(float)
print(prices)
                                
                            

Paste Hosted With By Wklejamy.pl