100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Datacamp Data Scientist Notes Questions with Correct Answers

Rating
-
Sold
-
Pages
190
Grade
A+
Uploaded on
26-03-2025
Written in
2024/2025

Datacamp Data Scientist Notes Questions with Correct Answers we can obtain an array of booleans by comparing an to a condition s can also be subset with booleans only those with a value of true are selected ndarray n dimensional array attribute

Show more Read less
Institution
Datacamp Data...
Course
Datacamp Data...











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Datacamp Data...
Course
Datacamp Data...

Document information

Uploaded on
March 26, 2025
Number of pages
190
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Datacamp Data Scientist Notes Questions
with Correct Answers

we can obtain an array of booleans by comparing an np.array to a condition

np.arrays can also be subset with booleans


only those with a value of true are selected




ndarray n dimensional array




np.array.shape attribute




array[1][2] is equivalent to array[1,2]




numpy array operations to each element of the numpy array list add subtract etc the next list




np.mean mean of all values passed to it

np.median

,because numpy enorces a single data type in an array it can drastically imporve the speed of

calculation as compared to a list




this is one reason C++ is faster it has more structure which allows for more assumptions




np.random.normal


np.columnstack




if you use fancy indexing to assign part of an older array as a new array the new array does not

behave mutably with the first, that is to say changes to the new array will not be reflected in the

older array Introduction to python




plt.xscale("log") intermediate python




plt.xlabel()

plt.ylabel()

plt.title()


plt.yticks(tick values, tick names)

,[]+nameofalist




plt.scatter(x,y,size)

plt.text(xloc,yloc,text)

plt.grid()


list.index()




country in dictionary


del(dict[value])




order matters list


lookup table dictionary




dataframe.index=list of labels

pandas.read_csv("path/to/csv/file",index_col=int)


pandas.read_html("url")

, pd.DataFrame["column","column2"] series

vs


pd.DataFrame[["column","column2"]] dataframe intermediate python




pd.DataFrame[int1:int2]

pd.DataFrame.loc and .iloc




.loc["row name"] returns a series, .loc[["row name"]] returns a DataFrame

.loc[["row name 1","row name 2"]]

.loc[[row names] a ":" can also be used here,[column names]]




.iloc[[1,2,3],[column list]]




how to get a datframe back form columns of a different dataframe

firstdataframe[["column name 1","column name2"]]




logical_and

logical_or
$15.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
ROOM404

Also available in package deal

Thumbnail
Package deal
DATACAMP EXAM PACK WITH COMPLETE SOLUTIONS
-
2 2025
$ 27.98 More info

Get to know the seller

Seller avatar
ROOM404 stuvia
View profile
Follow You need to be logged in order to follow users or courses
Sold
7
Member since
8 months
Number of followers
0
Documents
2867
Last sold
1 month ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions