Skip to content

Csv file and xlrd #1472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Jatinsharma250 opened this issue Jan 28, 2022 · 0 comments
Open

Csv file and xlrd #1472

Jatinsharma250 opened this issue Jan 28, 2022 · 0 comments

Comments

@Jatinsharma250
Copy link

Jatinsharma250 commented Jan 28, 2022

import all required library

Import xlrd
Import csv
Import pandas csv

open workbook by sheet index

optional_sheet_by_index()

Sheet=xlrd.open_workbook("Test.xlsx").sheet_by_index(0)

writen object is created

Col= csv.writen(open("Tcsv",'w',newline=" " ))

writing the data into csv file for row in range(sheet.nrows):

row by row write

operation is perform

Col.writerow (sheet.row_valued(row))

read csv file and convert

into a dataframe object

df=pd.Data frame(pd.read_csv("Tcsv)))

show the data frame df

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant