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 8179023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:54:36+00:00 2026-06-06T23:54:36+00:00

i have a .csv data set (like 15000 items) and i want to find

  • 0

i have a .csv data set (like 15000 items) and i want to find the minimum value.

As i’ve been searching for an answer, I’ve found a lot of answers, but people always have the data set they want to find the minimum value of in brackets

ex. [0.0, 1.3, 37.7]

and then ask Python to find the minimum value. With such a large data set, i cant possibly individually place the data into brackets, how can i call out a specific column in my .csv file and then find the minimum value?

(please explain what you are doing, too, i am very new to working with python)

  • 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-06T23:54:37+00:00Added an answer on June 6, 2026 at 11:54 pm
    • 15,000 items is not ‘large’; I have dealt with some 12 million line .csv files in memory (although I had to use 64-bit Python to get enough space!)

    • min() will work against a generator – that is, one item at a time, instead of all at once

    .

    import csv
    
    with open('myfile.csv', 'rb') as inf:
        incsv = csv.reader(inf)
        column = 1                # the second column (Python counts from 0, per @MRAB's comment)
        datatype = float          # or int, as appropriate (per MvG)
        data = (datatype(row[column]) for row in incsv)    # NB: a generator expression, not a list
        least_value = min(data)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a csv file with data looking like (see below). I need help
I have a number of images and a CSV data file that I want
I have a static csv file. I want to covert all the data in
I have some CSV data files that I want to import into mySQL. I
I have a csv file as the data source. I want to create a
I have a reasonably large data set and would like to store it in
Using jmeter, I have a variable passed from CSV file (using CSV Data Set
I have a data set that looks like the below (the input). IR# CR#
I have a csv data set containing a date field which my may or
I have an xml schema and csv data to generate corresponding xml files. I

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.