15 Answers
+ 2
What is tabular form? That's not a data type in python
+ 1
No see in can I do it with dataframe to display all the data in tabular form
+ 1
Thankyou
0
No not like that . See I am working on a project in which there is a python which includes python and MySQL code . I had inserted my records. When I want to display it . I display it with fetchall but it returns a list in tuple
0
I want to convert that list to tabular form
0
Okay..? So it comes back in a tuple. Do what you want with it after that then. You'll have to code something to display it
0
That's what I am asking see eg . Looks like this [(1, Ash, usa) ( 2 , Naruto, Japan) ]. So I want to display it in a tabular form. So it will look presentable
0
I am working on a project for a client
0
And? What have you tried? Just access each tuple inside the list and print the contents. What. Is. Tabular?
0
Then do it
0
if u want to print as a tabular form then use JSON notation to print the data of ur selected query. It is a very good approach in printing data to the console....r else where ever you want...!
0
Or use NumPy
0
np.asarray(tuple) returns an array with matrix format when printed
0
Thankyou