<jupyter_start><jupyter_text>QUESTION 1<jupyter_code>import pandas as pd

print(pd.__version__)<jupyter_output>1.0.5<jupyter_text>QUESTION 2<jupyter_code>import numpy as np

ar=np.array(['good morning','how','are','you','?'])
ser=pd.Series(ar)
print(ser,"\n", type(ser))<jupyter_output>0    good morning
1             how
2             are
3             you
4               ?
dtype: object 
 <class 'pandas.core.series.Series'><jupyter_text>QUESTION 3<jupyter_code>import numpy as np

ar=np.array(['WHAT','IS','UP','GUYS','????'])
ds=pd.Series(ar)
df=pd.DataFrame(ds)
df[1]=ds.index
print(df)<jupyter_output>0  1
0  WHAT  0
1    IS  1
2    UP  2
3  GUYS  3
4  ????  4<jupyter_text>QUESTION 4<jupyter_code>import seaborn as sns

print(sns.get_dataset_names())
Ndata=sns.load_dataset('mpg')
Ndata<jupyter_output>C:\Users\Dell\anaconda3\lib\site-packages\seaborn\utils.py:384: GuessedAtParserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 384 of the file C:\Users\Dell\anaconda3\lib\site-packages\seaborn\utils.py. To get rid of this warning, pass the additional argument 'features="lxml"' to the BeautifulSoup constructor.

  gh_list = BeautifulSoup(http)<jupyter_text>QUESTION 5<jupyter_code>country=Ndata["origin"].unique()
print("Origin Countries: ",country)<jupyter_output>Origin Countries:  ['usa' 'japan' 'europe']<jupyter_text>QUESTION 6<jupyter_code>uscar=Ndata.loc[Ndata["origin"]=="usa"]
print(uscar)<jupyter_output>mpg  cylinders  displacement  horsepower  weight  acceleration  \
0    18.0          8         307.0       130.0    3504          12.0   
1    15.0          8         350.0       165.0    3693          11.5   
2    18.0          8         318.0       150.0    3436          11.0   
3    16.0          8         304.0       150.0    3433          12.0   
4    17.0          8         302.0       140.0    3449          10.5   
..    ...        ...           ...         ...     ...           ...   
392  27.0          4         151.0        90.0    2950          17.3   
393  27.0          4         140.0        86.0    2790          15.6   
395  32.0          4         135.0        84.0    2295          11.6   
396  28.0          4         120.0        79.0    2625          18.6   
397  31.0          4         119.0        82.0    2720          19.4   

     model_year origin                       name  
0            70    usa  chevrolet chevelle malibu  
1            70    usa         [...]
StarcoderdataJupyterStructuredCleanDedup