How to Install Pandas in Vs Code On Windows 11

Опубликовано: 25 Февраль 2026
на канале: Nihal's Lab Notes
32
0

hey everyone 👋 Welcome to Nihal's Lab Notes channel! We recommend you start Here ↘️
In this video am gonna show you how to install Pandas in Vs Code On Windows 11
here's the code :
import pandas as pd
Sample data for movie information
data = {
"Movie": ["The Shawshank Redemption", "The Godfather", "The Dark Knight", "Pulp Fiction"],
"Year": [1994, 1972, 2008, 1994],
"Director": ["Frank Darabont", "Francis Ford Coppola", "Christopher Nolan", "Quentin Tarantino"],
"Genre": ["Drama", "Crime", "Action, Crime, Thriller", "Crime, Comedy, Drama"]
}
Create the DataFrame
df = pd.DataFrame(data)
Print the first 3 rows
print(df.head(3))
Access specific data using column name and index
best_movie_year = df.loc[df['Movie'] == "The Shawshank Redemption", "Year"].values[0]
print(f"The Shawshank Redemption was released in {best_movie_year}.")
Calculate average movie release year
average_year = df["Year"].mean()
print(f"The average release year of these movies is {average_year:.2f}.")

here's the link for my Instagram :
/ nihal_the_scientist
here's the link to my github
https://github.com/ghennani/
i am here for any question ,thanks for watching 💕& don't forget to subscribe to see more about data analytics ,programming languages ,data science and many other things ❤️