Answers for "read .data file in python"

3

read .dat python

import numpy as np
sed = np.loadtxt('spectra.dat', unpack = True)
Posted by: Guest on June-03-2020
3

python open and read file with

with open('pagehead.section.htm','r') as f:
    output = f.read()
Posted by: Guest on May-15-2020
0

read a data file in python

import pandas as pd

df = pd.read_csv('data.csv')

print(df.to_string())
Posted by: Guest on April-21-2021

Python Answers by Framework

Browse Popular Code Answers by Language