Trying to use drive link to load a dataset in a variable named url and it's running but when i run data.head(10) its showing error
import pandas as pd
url = 'https://drive.google.com/file/d/16M5AvCjoJKDVsqoBI2Wbgqxt-JPBEN9a/view?usp=sharing'
names = ['Class', 'id', 'Sequence']
data = pd.read_csv(url, names = names)
data.head(10)
error:
/usr/local/lib/python3.10/dist-packages/google/colab/data_table.py:175: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()`
dataframe = dataframe.reset_index()
/usr/local/lib/python3.10/dist-packages/google/colab/data_table.py:205: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()`
df.insert(df.shape[1], _FAKE_DATAFRAME_COLUMN, [None] * df.shape[0])
Error: Runtime no longer has a reference to this dataframe, please re-run this cell and try again.