Why i am unable to load dataset in jupyter notebook?


It is giving you the url error.
Try to give correct path from where you are loading the data.

Hello @rajeshavula2000, Here is an alternate command to load inbuilt datasets in Jupyter Notebook. df=pd.read_csv(‘https://raw.githubusercontent.com/mwaskom/seaborn-data/master/flights.csv’).
If you find this helpful then let me know. thank you…

Its a in-build dataset.

No brother its not working

To load the “flights” dataset using Seaborn, you can use the load_dataset() function provided by the library. Here’s an example of how to do it:

import seaborn as sns

Load the “flights” dataset

flights_data = sns.load_dataset(“flights”)

Print the first few rows of the dataset


In this code, we import the Seaborn library using the import statement. Then, we use the load_dataset() function with the argument “flights” to load the dataset into the flights_data variable. Finally, we print the first few rows of the dataset using the head() method.

@rajeshavula2000 can you share screenshot what type of error you are getting after running alternate code to read data?