numpy.array()numpy.ndarray()pandas.DataFrame()pandas.Series()numpy.zeros((2,3))?
pandas.DataFrame()numpy.array()numpy.matrix()pandas.Series()sum() function in Pandas?
read_csv()load_csv()import_csv()read()df.dtype()df.dtypes()df.data()df.checktype()pandas.concat() function do?
show_plot()plot()display()show()plt.plot([1,2,3], [4,5,6]) do in Matplotlib?
plt.title()plt.name()plt.label()plt.set_title()plt.legend()plt.add_legend()plt.legendize()plt.add_title()plt.hist()plt.plot()plt.bar()plt.scatter()plt.xlabel() in Matplotlib?
requests library?
requests.get()requests.request()requests.send()requests.get_request()requests.post() method in the Requests library?
requests library?
params argument in requests.get().data argument in requests.get().body argument in requests.get().headers argument in requests.get().requests is used to check the status code of a response?
response.status()response.check()response.status_code()response.get_status()requests library?
requests.post(url, data=json_data)requests.post(url, json=json_data)requests.send(url, json=json_data)requests.post(url, body=json_data)auth=(username, password)headers={'Authorization': 'Bearer token'}cookies={'session': 'value'}params={'auth': 'username:password'}@flask.route()@app.route()@app.connect()@flask.connect()Flask class in Flask do?
urls.pysettings.pyapp.pyviews.pydjango-admin startprojectdjango-admin startapppython manage.py startapppython manage.py newappdjango.static()django.urls()django.contrib.staticfilesdjango.staticfiles()tf.constant()tf.variable()tf.create()tf.data()torch.nn.layer()torch.layers()torch.nn.Module()torch.tensor()| Qno | Answer |
|---|---|
| 1 | a) numpy.array() |
| 2 | b) A 2×3 matrix filled with zeros. |
| 3 | a) pandas.DataFrame() |
| 4 | a) 0 (columns) |
| 5 | a) read_csv() |
| 6 | b) df.dtypes() |
| 7 | b) Merges two DataFrames by row. |
| 8 | d) show() |
| 9 | a) Plots a graph with x-values 1, 2, 3 and y-values 4, 5, 6. |
| 10 | a) plt.title() |
| 11 | a) plt.legend() |
| 12 | c) plt.bar() |
| 13 | b) To set the label of the x-axis. |
| 14 | a) requests.get() |
| 15 | b) To send a POST request. |
| 16 | a) Using params argument in requests.get(). |
| 17 | c) response.status_code() |
| 18 | b) requests.post(url, json=json_data) |
| 19 | a) auth=(username, password) |
| 20 | b) @app.route() |
| 21 | a) Handles HTTP requests and responses. |
| 22 | b) 5000 |
| 23 | a) urls.py |
| 24 | a) SQLite |
| 25 | b) django-admin startapp |
| 26 | c) django.contrib.staticfiles |
| 27 | b) Machine learning and deep learning. |
| 28 | b) Dynamic computation graph. |
| 29 | a) tf.constant() |
| 30 | c) torch.nn.Module() |