Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8352397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:57:05+00:00 2026-06-09T08:57:05+00:00

I find it strange that there is no built in function to just take

  • 0

I find it strange that there is no built in function to just take the entire contents of an excel-produced csv file and just place them on a nested list so that it makes a 2D matrix.

Is there any reason why this is impractical/not standard?

I am putting my own CSV code together to do it, but I am already bumping into annoying hurdles wanting to do simple stuff like write columns instead of rows and whatnot.

Is there any reason I should consider a completely different approach?

the rationale is that using grids in, say, PyQt is so simple and it seems like the same kind of designing could translate seamlessly to reading and writing simple spreadsheets ie:

name , myname
age , myage
xvals, yvals
1,1
2,4
3,9

turns into

[[name,myname],[age,myage],[xvals,yvals],[1,1],[2,4],[3,9]]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T08:57:06+00:00Added an answer on June 9, 2026 at 8:57 am

    Have a look at Numpy and its loadtxt function. It does exactly what you want :

    http://docs.scipy.org/doc/numpy/reference/generated/numpy.loadtxt.html

    and for writing, you can use the savetxt function :

    http://docs.scipy.org/doc/numpy/reference/generated/numpy.savetxt.html

    Also there is functions to read directly from Excel files :

    http://pypi.python.org/pypi/xlrd/

    http://packages.python.org/openpyxl/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have noticed that there are strange requests to my website trying to find
It seems strange that the language apparently includes no suitable functionality. I find myself
I find it strange that after looking everywhere I don't find any tool to
I want to ask because I find that strange: the way varint is written
I'm trying to write a function that optionally take a function as argument let
I have a website that I built using Django. Using the settings.py file, I
I am using jQuery Accordion here and find some strange behavior when opening a
I'am watching some video tutorial about css and find realy strange thing. First of
I am having a strange problem ( well, at least i find it strange
While writing some views to respond to ajax requests i find it somewhat strange

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.