Answers for "how to read .data file in python"

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

Code answers related to "how to read .data file in python"

Python Answers by Framework

Browse Popular Code Answers by Language