Solved

storing csv file in table variable in Python

Posted on 2017-03-12
2
107 Views
Last Modified: 2017-03-13
Hi All,

As we know that in R language you can store a  data file into a data.table and can do all kinds of data manipulations to the table variable. data.table has got a lot of built in methods that could be used to do data manipulations on that table object....

Can i do similar - like read and store a csv file into a data.table (how to do it in python)? so that i can do all kinds of manupulation to it,? can you show me some sample python code example.
Does python can got something similar...like a table object that I can use? or anything close?

Thank you
0
Comment
Question by:Rayne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
pepr earned 500 total points
ID: 42045193
There is no standard module/functionality similar to R data.table in Python. I do not have a first hand experience, but you may want to use the pandas library, its pandas.DataFrame, and the functions pandas.read_csv and the pandas.DataFrame.to_csv.
0
 

Author Comment

by:Rayne
ID: 42046848
Thank you Pepr, Pandas the way to go, confirmed :)
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question