Home > Software design >  Why is my csv file not printing after I import it?
Why is my csv file not printing after I import it?

Time:02-08

  1. import pandas as pd
  2. tbl1 = pd.import_csv('sample_prices.csv')
  3. tbl1.print()

and still not receiving anything? It does not even come up with an error.

CodePudding user response:

The code might be written this way.

import pandas as pd
tbl1 = pd.read_csv('sample_prices.csv')
print(tbl1)

CodePudding user response:

import pandas as pd

tbl1 = pd.read_csv('sample_prices.csv')

print(tbl1)

  •  Tags:  
  • Related