42313/error-reading-csv-file-in-python
Hi. I am new to python and I am trying to read a csv file. I am using pandas library for reading it. This is my code
import pandas as pd filedata = pd.read_csv(“/home/user/data1”)
But I am getting file not found error
You are missing the extension. Try this:
import pandas as pd filedata = pd.read_csv(“/home/user/data1.csv”)
Hello @kartik, Try this: import pandas as pd df = ...READ MORE
The correct, fully Pythonic way to read ...READ MORE
i am getting an error reading a ...READ MORE
A simple "if" statement should suffice. you ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
If you want to find the value ...READ MORE
add the following line on top of ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.