Notebook
Jun 27, 2024, 6:29 PM
Which college has the highest tuition?
[1]
9
1
2
3
4
5
6
7
import
pandas
as
pd
# Load the CSV file into a DataFrame
file_path
=
'2022 US College Rankings.csv'
df
=
pd
.
read_csv
(
file_path
)
df
.
head
(
)
Table
[2]
9
1
2
3
4
5
6
7
8
9
import
pandas
as
pd
# Load the CSV file into a DataFrame
file_path
=
'2022 US College Rankings.csv'
df
=
pd
.
read_csv
(
file_path
)
# Find the college with the highest tuition
top_tuition_college
=
df
.
loc
[
df
[
'Tuition'
]
.
idxmax
(
)
]
top_tuition_college
HTML
The college with the highest tuition is
Columbia University
with a tuition fee of
$63,530
.
Get started with Vizly