Answers for "function to open csv files python"

15

import csv file in python

import pandas as pd

df = pd.read_csv (r'Path where the CSV file is stored\File name.csv')
print (df)
Posted by: Guest on June-07-2020
-1

read file csv in python

import pandas as pd
import numpy as np
datas = pd.read_csv('data.csv')
a = datas.to_numpy()
print(a[0])
Posted by: Guest on July-21-2021

Python Answers by Framework

Browse Popular Code Answers by Language