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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:07:17+00:00 2026-06-17T09:07:17+00:00

How do I read the following CSV file into a Pandas DataFrame ? Date,"price","factor_1","factor_2"

  • 0

How do I read the following CSV file into a Pandas DataFrame?

Date,"price","factor_1","factor_2"
2012-06-11,1600.20,1.255,1.548
2012-06-12,1610.02,1.258,1.554
2012-06-13,1618.07,1.249,1.552
2012-06-14,1624.40,1.253,1.556
2012-06-15,1626.15,1.258,1.552
2012-06-16,1626.15,1.263,1.558
2012-06-17,1626.15,1.264,1.572
  • 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-17T09:07:17+00:00Added an answer on June 17, 2026 at 9:07 am

    pandas.read_csv to the rescue:

    import pandas as pd
    df = pd.read_csv("data.csv")
    print(df)
    

    This outputs a pandas DataFrame:

            Date    price  factor_1  factor_2
    0  2012-06-11  1600.20     1.255     1.548
    1  2012-06-12  1610.02     1.258     1.554
    2  2012-06-13  1618.07     1.249     1.552
    3  2012-06-14  1624.40     1.253     1.556
    4  2012-06-15  1626.15     1.258     1.552
    5  2012-06-16  1626.15     1.263     1.558
    6  2012-06-17  1626.15     1.264     1.572
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following input file: 2012,10,3,AAPL,BUY,200 2012,12,5,AAPL,SELL,200 How can I read this in
I want to read a CSV file's columns directly into variables. The result should
The Objective To read the csv file, and separate each line into an array.
I am using the following code to read in a CSV file: String next[]
I'm importing a CSV file into Ruby (1.8.7). File.open('path/to/file.csv').read returns this in the console:
I read a CSV file into an array using: NSString *theWholeTable = [NSString stringWithContentsOfFile:[[NSBundle
How to do read a .csv file with the following content $C=2$A=3$B=1$ Then create
I want to read .csv file in PHP and put its contents into the
So far I have: //read in data from CSV file and separate it into
I use the following command to read in a csv: LOAD DATA INFILE '/Users/Tyler/Desktop/players_escaped.txt'

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.