Python has a set of tools for Data Science which are among the best on the market.
The Pandas library is the one you will probably use all of the time.
Pandas will help you manipulate DataFrames.
We import the pandas library.
Create a DataFrame
We create an empty DataFrame.
Create a DataFrame with index
We create a DataFrame with index.
Create a DataFrame with index and column
Here is the example of creating a DataFrame with one index and one column.
See the index and data parameters.
Create a DataFrame with index and n columns.
In this example we crate a DataFrame with an index from 0 to 5 with two different columns.
This is how you create a DataFrame !
If you already have data ?
If you already have data, I've created another blog post that will give you a method to read data.