I am using colab and below is the code
import pandas as pd
import numpy as np
import os
import csv
data = pd.read_file(r'C:\Users\sd3394\Test\CAN_all.csv')
data.head()
I am using colab and below is the code
import pandas as pd
import numpy as np
import os
import csv
data = pd.read_file(r'C:\Users\sd3394\Test\CAN_all.csv')
data.head()
Why is the letter r in the line with pd.read_file()?
The letter "r" identifies the string as a raw string. This allows entering a path & file name with single backslashes instead of having to escape them (double backslashes).
Try using
pd.read_csv
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.