Jun-16-2021, 06:50 PM
Hello all
I am trying to gain a better understanding of object orientation programming.
I cam across the following code:-
This code works and I replaced the actual csv file with my own.
My question is would it be correct to say that:
1) df is an object of the class read_csv
2) The class read_csv is found in an imported module
3) The imported module is given the alias pd
Is this correct?
I am trying to gain a better understanding of object orientation programming.
I cam across the following code:-
1 2 3 4 5 |
import pandas as pd df = pd.read_csv( "T.csv" ) print (df.head( 2 )) |
My question is would it be correct to say that:
1) df is an object of the class read_csv
2) The class read_csv is found in an imported module
3) The imported module is given the alias pd
Is this correct?