write a program to read from a csv file employee.csv and create a dataframe from it but DataFrame should not using file column header rather should use its own column number 0,1,2 etc
Answers
Answer:
While you can read and write CSV files in Python using the built-in open() function, or the dedicated csv module - you can also use Pandas.
In this article, you will see how to use Python's Pandas library to read and write CSV files.
What is a CSV File?
Let's quickly recap what a CSV file is - nothing more than a simple text file, following a few formatting conventions. However, it is the most common, simple, and easiest method to store tabular data. This format arranges tables by following a specific structure divided into rows and columns. It is these rows and columns that contain your data.
A new line terminates each row to start the next row. Similarly, a delimiter, usually a comma, separates columns within each row.
Answer:
Explanation:
hju 6kiilill