dsc

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

ranges

- called by np.arange() - start, stop, step

arrays

- fancy lists - called by np.array([])

int's and floats mixing

- mixing an int with a float results in a float

grabbing a column

.get() - returns a series

sorting a dataframe

.sort_values(by='colNam') - default is ascending

.iloc[]

Integer position

True or false: Grabbing by an index results in an error.

True! You can't .get() an indez.

df.set_index('column')

Whatever column is in the parenthesis will be set to new index

reading data from a file

bpd.read_csv(...)

adding a column to a df

df.assign(NewCol=)

dividing two ints

results in a float

.loc[]

searches by value

+, -, * in'ts

will always result in another int


संबंधित स्टडी सेट्स

Art History Modern checkpoint 5 100%

View Set

Exam Simulation Missed Questions

View Set