text
stringlengths
1
3.55k
source
stringlengths
24
207
emb
listlengths
1.02k
1.02k
12. 4 more math recursion 1. c. fib ( 9 ) = fib ( 8 ) + fib ( 7 ). fib ( 9 ) = fib ( 8 ) + fib ( 7 ) = 21 + 13 = 34. 2. c. there are eight calls to base cases as seen in the animation. those calls result in the recursion returning and the final value being computed. 3. b. the structure that shows which function calls a...
openstax_introduction_to_python_programming_-_web
[ -0.0013395653804764152, 0.00556531036272645, 0.04811152070760727, -0.03195700794458389, 0.012522732838988304, -0.03795120492577553, -0.022686947137117386, 0.00011878367513418198, -0.012616189196705818, 0.07398385554552078, 0.04581271857023239, 0.0048198215663433075, 0.01144148875027895, -0...
12. 5 using recursion to solve problems 1. c. this array is sorted in ascending order, as is required for using the binary search algorithm. 2. a. mid = ( 4 + 7 ) / / 2 = 11 / / 2 = 5. the operator / / is used for floor division. 3. a. the first call results in mid being 3, next mid becomes 5, and finally, mid becomes ...
openstax_introduction_to_python_programming_-_web
[ 0.025504376739263535, 0.008950785733759403, 0.00570265855640173, -0.04863483086228371, -0.013288969174027443, -0.02390689216554165, -0.0267777219414711, 0.029331961646676064, -0.0003818312252406031, 0.08478054404258728, 0.02929537184536457, 0.01859978586435318, -0.01039410661906004, -0.055...
13. 1 inheritance basics 1. a. a doughnut is a type of pastry, so doughnut inherits from pastry. 2. b. a kitchen has a freezer, so a kitchen class would contain a freezer instance. a has - a relationship is also called a composition. 3. b. the goalkeeper class inherits from the player class. 4. b. the subclass name is ...
openstax_introduction_to_python_programming_-_web
[ 0.003108224831521511, 0.01454657968133688, 0.014627834782004356, -0.03257937356829643, 0.009789403527975082, 0.033119745552539825, -0.0009779868414625525, -0.003801365615800023, 0.005438162945210934, 0.062410153448581696, 0.01868976652622223, 0.032283488661050797, 0.021766990423202515, -0....
13. 2 attribute access 1. b. dev _ 1 is the second employee created. so dev _ 1 is the second object to call employee. _ _ init _ _ ( ), and dev _ 1. e _ id is assigned with 2. 2. a. subclass's _ _ init _ _ ( ) is not explicitly defined, so superclass's _ _ init _ _ ( ) is executed. 3. b. dc _ 1 inherits feat _ 1 and f...
openstax_introduction_to_python_programming_-_web
[ -0.01913519948720932, -0.008233041502535343, -0.020387472584843636, -0.057517293840646744, 0.014977606944739819, -0.014148932881653309, 0.008679632097482681, -0.020323215052485466, 0.008173870854079723, 0.0515458919107914, 0.003158530918881297, 0.006133537273854017, 0.07480978220701218, -0...
13. 3 methods 1. b. overriding involves defining a subclass method that has the same name as the superclass method. 2. b. the self parameter is missing from the overridden method's definition. 3. c. the class definition doesn't indicate inheritance. the definition should be class contracttax ( tax ) :. 398 access for f...
openstax_introduction_to_python_programming_-_web
[ 0.017135031521320343, 0.008020416833460331, 0.006154600065201521, -0.0312672033905983, 0.009059309959411621, -0.0024714297614991665, 0.025398313999176025, -0.01359755452722311, 0.010591673664748669, 0.05797610059380531, 0.04151304066181183, 0.048555728048086166, 0.021800411865115166, 0.002...
13. 4 hierarchical inheritance 1. a. class a is the superclass for class b and class c. 2. b. employee would be an appropriate superclass for developer and salesrep. developer and salesrep are not directly related. 3. a. b ( 2 ) resolves to b ( 2, 0 ), as b _ attr has a default value of 0. a _ attr is assigned with 2. ...
openstax_introduction_to_python_programming_-_web
[ -0.012158291414380074, -0.004403755068778992, 0.01602734439074993, -0.0626256987452507, 0.019502880051732063, 0.008870714344084263, 0.008223755285143852, -0.00252587185241282, -0.011056454852223396, 0.039918914437294006, -0.00474578607827425, 0.006986709777265787, 0.016263213008642197, -0....
13. 5 multiple inheritance and mixin classes 1. a. 1 is the argument passed to c's _ _ init _ _ ( ) for a _ attr. 2. b. an argument is not passed to c's _ _ init _ _ ( ) for c _ attr, so c _ attr is assigned with the default value, 20. 3. a. 2 maps to b _ attr in b's _ _ init _ _ ( ). 4. a. eat ( ) only applies to carn...
openstax_introduction_to_python_programming_-_web
[ 0.017947159707546234, 0.028084401041269302, 0.0244889035820961, -0.03744394704699516, 0.008160189725458622, 0.0037378647830337286, -0.0015194801380857825, 0.007034642621874809, -0.036044444888830185, 0.04266970977187157, 0.004636112134903669, -0.002058671787381172, 0.02518017217516899, -0....
14. 1 reading from files 1. c. the file is opened and is associated with the fileobj object. reading from the file will be possible using fileobj. 2. a. the file must exist in the same folder as the python file in order for the file to be opened. 399 3. b. python interprets this command as the programmer trying to prin...
openstax_introduction_to_python_programming_-_web
[ 0.01285244058817625, 0.02109956555068493, -0.009502033703029156, -0.029402587562799454, 0.006780722178518772, -0.01535109058022499, 0.014118504710495472, 0.002678052056580782, 0.037351977080106735, 0.09789503365755081, -0.004747784696519375, 0.0056459009647369385, 0.019089756533503532, -0....
14. 2 writing to files 1. a. the default mode for the open ( ) function is read. 2. c.'a'indicates append mode allowing additions to the file. 3. b.'w'indicates write mode, and newlog. txt will be created or overwritten ( if newlog. txt already exists ) and will allow writing. 4. c. resources. txt is likely empty, but ...
openstax_introduction_to_python_programming_-_web
[ -0.01035919040441513, 0.010705734603106976, 0.04822663590312004, 0.012498976662755013, -0.01270958874374628, -0.010190512984991074, 0.010761124081909657, 0.011913109570741653, -0.004413277376443148, 0.0951240137219429, -0.028858782723546028, 0.0184562299400568, 0.028010349720716476, -0.019...
14. 3 files in different locations and working with csv files 1. b. the path followed by the filename enables the file to be opened correctly and in read mode by default. 2. c. the use of forward slashes / replacing the windows standard backslashes \ enables the path to be read correctly. the path followed by the filen...
openstax_introduction_to_python_programming_-_web
[ 0.01396005880087614, 0.015348369255661964, 0.03778234124183655, -0.019903354346752167, -0.03437865898013115, 0.0041021546348929405, 0.008520406670868397, -0.023341013118624687, 0.0042067584581673145, 0.12029370665550232, 0.001512295100837946, 0.01297364104539156, 0.018019448965787888, 0.00...
14. 4 handling exceptions 1. c. the string " 3 - 4 " is not an integer, so the int ( ) function raises a valueerror like before. 2. a. the filename should end with. txt, not. text. 3. b. if the line has no spaces, then len ( parts ) will be only 1, and parts [ 1 ] will be out of range. 4. b. the int ( ) function raises...
openstax_introduction_to_python_programming_-_web
[ -0.03215872496366501, -0.025671444833278656, 0.007621086668223143, 0.003405829658731818, -0.0034653323236852884, -0.016369778662919998, 0.00830635242164135, -0.021716367453336716, -0.014204030856490135, 0.08278194814920425, 0.013844465836882591, 0.018793830648064613, 0.0301494263112545, 0....
accounts for viewing or editing the content.
openstax_introduction_to_python_programming_-_web
[ -0.03937367722392082, -0.04217849671840668, -0.015771325677633286, 0.010611123405396938, 0.018177350983023643, 0.0032604888547211885, 0.0008203466422855854, -0.011881369166076183, 0.05222715809941292, 0.03433528542518616, 0.0004270973149687052, 0.010816610418260098, 0.034887246787548065, -...
15. 2 numpy 1. c. to create an m by n matrix of all zeros, np. zeros ( ( m, n ) ) can be used. 2. a. ndarray is a data type supported by numpy. when printing the type of an ndarray object, <'numpy. ndarray'> is printed. 3. d. numpy array is optimized for computational and memory efficiency while also offering array - o...
openstax_introduction_to_python_programming_-_web
[ 0.010346091352403164, 0.003017655573785305, -0.020205572247505188, -0.04234150052070618, -0.012253392487764359, -0.01612641103565693, 0.018665222451090813, -0.015197793953120708, 0.008186099119484425, 0.09496070444583893, 0.021467559039592743, 0.010472787544131279, -0.0009148824028670788, ...
15. 3 pandas 1. a. series is a pandas data structure representing one - dimensional labeled data. 2. a. a dataframe object can be considered a collection of one - dimensional labeled objects represented by series objects. 3. b. the pandas dataframe can store columns of varying data types, while numpy only supports nume...
openstax_introduction_to_python_programming_-_web
[ 0.01896744780242443, -0.034147847443819046, 0.017095590010285378, -0.03980184718966484, 0.020820103585720062, 0.014481079764664173, -0.0034574384335428476, 0.020370090380311012, 0.01887746900320053, 0.05337155610322952, 0.023626061156392097, -0.015334411524236202, -0.010796669870615005, -0...
15. 4 exploratory data analysis 1. a. the element in the first row and the first column is a. 2. c. the element in the second row and the second column is 20. 3. a. the element at row label 2 and column label a is c. 4. b. df. loc [ 0 : 2, " a " ] returns rows 0 to 2 ( inclusive ) of column a. 401 5. c. loc [ 1 ] retur...
openstax_introduction_to_python_programming_-_web
[ -0.002655694494023919, -0.0030602298211306334, 0.030606584623456, -0.010958287864923477, -0.022660184651613235, 0.0023973113857209682, 0.007926852442324162, -0.0005617469432763755, 0.017105335369706154, 0.07375705987215042, 0.05318940058350563, 0.015028181485831738, 0.0063799899071455, -0....
15. 5 data visualization 1. b. a histogram is used to plot the distribution of continuous variables. 2. c. a box plot is used to show the distribution of a continuous variable, along with visualizing outliers, minimum, maximum, and quartiles. 3. a. a line plot is used to show trends and changes over time between two va...
openstax_introduction_to_python_programming_-_web
[ 0.024536175653338432, 0.008066214621067047, 0.04431040212512016, -0.041033267974853516, -0.038989562541246414, -0.01758039928972721, 0.013833783566951752, -0.000469748571049422, 0.012891238555312157, 0.07067542523145676, -0.019896965473890305, -0.002254635561257601, 0.02826843410730362, -0...
##ifier 77 format ( ) 210 formatted string literal 76 formatting string 209 function 146 g global scope 153 google colaboratory 351 google sheets 351 h hierarchical inheritance 316 i identity 81 if statement 97 iloc [ ] 363 immutable 86, 161, 203 implicit type conversion 43 import statement 55 in 205 index 88 index ( )...
openstax_introduction_to_python_programming_-_web
[ -0.0014913963386788964, -0.05402360484004021, 0.010282647795975208, -0.02328154444694519, -0.007549770176410675, -0.012686221860349178, 0.029465414583683014, -0.00036259606713429093, -0.00808254536241293, 0.04683802276849747, 0.008875498548150063, 0.01852908544242382, 0.023618722334504128, ...
7 step size 123 str ( ) 43 string 88, 197 string alignment type 214 string slicing 201 syntax 9 t traceback 24 true division 51 try 341 tuple 85 type 81 u unicode 72 upper ( ) 199 v value 81 variable 12 w while loop 121 write ( ) 332 404 index access for free at openstax. org index 405
openstax_introduction_to_python_programming_-_web
[ -0.01425184030085802, -0.011278749443590641, 0.020462919026613235, 0.027345743030309677, -0.03193814679980278, -0.016883932054042816, 0.02444649115204811, 0.013230277225375175, 0.01263358537107706, 0.08047802746295929, 0.01569570228457451, 0.03563680127263069, -0.01847146265208721, -0.0197...
principles of data science senior contributing authors dr. shaun v. ault, valdosta state university dr. soohyun nam liao, university of california san diego larry musolino, pennsylvania state university openstax rice university 6100 main street ms - 375 houston, texas 77005 to learn more about openstax, visit https : /...
openstax_principles-of-data-science-web
[ -0.02748679928481579, 0.01349809393286705, 0.05228431522846222, -0.011031033471226692, 0.010541833937168121, 0.007934627123177052, -0.025142908096313477, -0.011899313889443874, -0.027384426444768906, 0.05008901283144951, -0.00465208338573575, 0.018534187227487564, 0.04563874006271362, -0.0...
https : / / openstax. org / details / books / principles - data - science in your citation. for questions regarding this licensing, please contact support @ openstax. org. trademarks the openstax name, openstax logo, openstax book covers, openstax cnx name, openstax cnx logo, openstax tutor name, openstax tutor logo, c...
openstax_principles-of-data-science-web
[ -0.02856403775513172, -0.013218488544225693, 0.04464816674590111, 0.005453349091112614, -0.009694711305201054, 0.026149816811084747, 0.005643786862492561, -0.004798883572220802, -0.01396308746188879, 0.033794816583395004, 0.012720330618321896, 0.02652239054441452, 0.04266894608736038, 0.00...
leaders across the spectrum of human endeavor. philanthropic support openstax is grateful for the generous philanthropic partners who advance our mission to improve educational access and learning for everyone. to see the impact of our supporter community and our most updated list of partners, please visit openstax. or...
openstax_principles-of-data-science-web
[ -0.0025129711721092463, 0.040987126529216766, 0.03987498581409454, 0.018781088292598724, -0.008594842627644539, 0.03207448124885559, -0.02857937477529049, 0.012436791323125362, 0.005717429332435131, 0.032169125974178314, -0.016860533505678177, 0.01832522451877594, 0.033393677324056625, -0....
105 3 introduction 105 3. 1 measures of center 106 3. 2 measures of variation 112 3. 3 measures of position 117 3. 4 probability theory 121 3. 5 discrete and continuous probability distributions 129 key terms 142 group project 143 quantitative problems 144 inferential statistics and regression analysis 147 4 introducti...
openstax_principles-of-data-science-web
[ 0.026355784386396408, 0.017959652468562126, 0.02291523851454258, -0.0380328968167305, 0.01205126941204071, -0.014996557496488094, -0.01235925778746605, -0.014948645606637001, -0.0371389165520668, 0.07100183516740799, -0.005571434274315834, 0.011805175803601742, 0.008593323640525341, -0.026...
415 9 introduction 415 9. 1 encoding univariate data 416 9. 2 encoding data that change over time 430 9. 3 graphing probability distributions 435 9. 4 geospatial and heatmap data visualization using python 443 9. 5 multivariate and network data visualization using python 449 key terms 461 group project 462 critical thi...
openstax_principles-of-data-science-web
[ 0.023040542379021645, 0.028316626325249672, 0.03425753861665726, -0.017004944384098053, 0.010707324370741844, 0.020672833546996117, -0.0058082533068954945, -0.032006777822971344, 0.005801886785775423, 0.08702123165130615, -0.0009651612490415573, 0.007612242363393307, 0.028218116611242294, ...
10. 3 effective executive summaries 488 key terms 494 group project 495 chapter review 495 critical thinking 497 references 498 appendix a : review of excel for data science 499 a appendix b : review of r studio for data science 517 b appendix c : review of python algorithms 533 c appendix d : review of python function...
openstax_principles-of-data-science-web
[ -0.0002765837125480175, -0.0011785714887082577, 0.02807394415140152, -0.01774011179804802, -0.006421104073524475, -0.009191358461976051, -0.030743680894374847, 0.0012638765620067716, -0.04712991416454315, 0.07563465088605881, 0.007991149090230465, 0.034419476985931396, 0.03504347428679466, ...
to its title, creator or rights holder, host platform, and license within the caption. because the art is openly licensed, non - commercial users or organizations may reuse the art as long as they provide the same attribution to its original source. ( commercial entities should contact openstax to discuss reuse rights ...
openstax_principles-of-data-science-web
[ -0.03193575143814087, -0.02984967827796936, 0.051738470792770386, -0.022853199392557144, 0.01604454778134823, -0.03676162660121918, -0.01389255840331316, -0.008443661034107208, -0.013429785147309303, 0.048374149948358536, 0.01951288804411888, 0.007831554859876633, 0.044033482670784, -0.009...
for undergraduate students interested in the rapidly growing field of data science ; preface 1 this may include data science majors, data science minors, or students concentrating in business, finance, health care, engineering, the sciences, or a number of other fields where data science has become critically important...
openstax_principles-of-data-science-web
[ 0.003856710623949766, 0.0029401618521660566, 0.03580077737569809, -0.03897136077284813, 0.006659780628979206, -0.0019522334914654493, -0.02662961557507515, -0.009034932591021061, 0.010750028304755688, 0.05095088109374046, 0.0112750343978405, -0.0031856875866651535, 0.019520755857229233, -0...
self - contained manner, although most chapters do cross - reference sections and chapters that precede or follow. more importantly, the authors have taken care to build topics gradually, from chapter to chapter, so instructors should bear this in mind when considering alternate sequence coverage. unit 1 : introducing ...
openstax_principles-of-data-science-web
[ 0.013844931498169899, 0.020679932087659836, 0.0531560555100441, -0.04853369668126106, 0.010355453006923199, 0.011461085639894009, -0.035229846835136414, -0.0029745555948466063, 0.01337502058595419, 0.07769900560379028, -0.0005592982051894069, 0.019537249580025673, 0.02830091491341591, -0.0...
multivariable regression. finally, chapter 6 refers back to the topics of data mining and big data introduced in chapter 2. chapter 7 is a pedagogically rich chapter, with a balance of quantitative and qualitative content, covering the role of neural networks in deep learning and applications in large language models. ...
openstax_principles-of-data-science-web
[ 0.045243773609399796, 0.04289781674742699, 0.03249376639723778, -0.026364006102085114, 0.000768449273891747, 0.004930189810693264, -0.023928917944431305, -0.0273438673466444, -0.010206367820501328, 0.0883956328034401, 0.008594735525548458, 0.01614694483578205, 0.02163277193903923, -0.02037...
. chapter 9 provides a range of python techniques to create boxplots and histograms for univariate data ; to create line charts and trend curves for time series ; to graph binomial, poisson, and normal distributions ; to generate heatmaps from geospatial data ; and to create correlation heatmaps from multidimensional d...
openstax_principles-of-data-science-web
[ 0.025468287989497185, 0.06712183356285095, 0.04490666091442108, -0.022752948105335236, 0.010658596642315388, 0.000398446834878996, -0.021209102123975754, -0.0075850156135857105, -0.006983247119933367, 0.08717042952775955, -0.008630120195448399, 0.019205233082175255, -0.0054646702483296394, ...
illustrations and python code feature boxes build on and supplement the theory. students are encouraged to try out the python code from the feature boxes in the google colaboratory ( https : / / openstax. org / r / colabresearch ) ( colab ) platform. the authors have included a diverse mix of data types and sources for...
openstax_principles-of-data-science-web
[ 0.012905491515994072, -0.016602180898189545, 0.013323917984962463, -0.013112321496009827, 0.0019431272521615028, 0.0025247838348150253, -0.03531891852617264, 0.0035741429310292006, -0.006360935512930155, 0.05250256881117821, -0.004714796785265207, -0.010134673677384853, 0.03707047551870346, ...
and discrimination in machine learning models, including related python libraries such as holisticai ( https : / / openstax. org / r / holistic ) and fairlens ( https : / / openstax. org / r / projectfairlens ). chapter 10 references several executive dashboards that support transparency in government. the group projec...
openstax_principles-of-data-science-web
[ 0.03236623480916023, 0.021887602284550667, -0.0013480273773893714, -0.0009206655668094754, 0.0017298448365181684, -0.002492415951564908, -0.04255696386098862, 0.009213578887283802, -0.027875859290361404, 0.06183124706149101, -0.0028290338814258575, 0.04526345059275627, 0.010076854377985, -...
text for chapter review questions ( multiple - choice ). an instructor solution manual ( ism ) will be available for verified instructors and downloadable from the restricted openstax instructor resources web page, with detailed solutions to quantitative problems, sample answers for critical thinking questions, and a b...
openstax_principles-of-data-science-web
[ 0.008029932156205177, 0.0003068535588681698, 0.03046100214123726, 0.00048769553541205823, 0.005022981204092503, 0.027880467474460602, -0.01769925281405449, -0.005795838311314583, -0.011999929323792458, 0.08581347018480301, 0.015137617476284504, 0.011269657872617245, 0.011122251860797405, -...
). dr. soohyun nam liao, university of california san diego. dr. liao joined the uc san diego faculty in 2015, serving as assistant teaching professor since 2021. she holds phd and ms degrees in computer science and engineering from uc san diego and a bs in electronics engineering from seoul university, south korea. sh...
openstax_principles-of-data-science-web
[ 0.028139742091298103, 0.006601713597774506, 0.013807250186800957, -0.01020989753305912, -0.006925894413143396, -0.00512212049216032, -0.018848814070224762, 0.033205706626176834, 0.004207194782793522, 0.06434522569179535, 0.02064710110425949, -0.003146017901599407, 0.017898276448249817, -0....
, 2e, and introductory business statistics, 2e. the authors wish to express their deep gratitude to developmental editor ann west for her skillful editing and gracious shepherding of this manuscript. the authors also thank technical editor dhawani shah ( phd statistics, gujarat university ) for contributing technical r...
openstax_principles-of-data-science-web
[ 0.0028464163187891245, 0.00701980059966445, 0.02689606323838234, -0.0009648117702454329, -0.037086572498083115, -0.011761036701500416, -0.018506085500121117, -0.027279198169708252, 0.00009440885332878679, 0.07515086233615875, -0.02824927307665348, 0.026415761560201645, 0.031507451087236404, ...
continuum to align these practices with your institution and course policies. you may then include the graphic on your syllabus, present it in your first course meeting, or create a handout for students. ( attribution : copyright rice university, openstax, under cc by 4. 0 license ) 6 preface access for free at opensta...
openstax_principles-of-data-science-web
[ -0.009866747073829174, 0.005948349833488464, 0.013533808290958405, 0.021716121584177017, -0.02344214729964733, 0.01478658989071846, -0.028860218822956085, -0.022343745455145836, 0.004131759982556105, 0.05937518551945686, 0.0051270476542413235, 0.023220660164952278, 0.03960469365119934, -0....
providing vital information about the daily life of the people who created them. ( credit : modification of work “ indian petroglyphs ( ~ 100 b. c. to ~ 1540 a. d. ) ( newspaper rock, southeastern utah, usa ) 24 ” by james st. john / flickr, cc by 2. 0 ) chapter outline 1. 1 what is data science? 1. 2 data science in p...
openstax_principles-of-data-science-web
[ 0.04252876341342926, 0.03939489647746086, 0.0373908132314682, -0.03920399025082588, -0.01581755466759205, 0.009325915947556496, -0.007326832972466946, -0.003510027891024947, 0.021021395921707153, 0.04128379002213478, -0.01205170527100563, -0.02835906110703945, 0.038052067160606384, 0.02290...
1. 1 what is data science? learning outcomes by the end of this section, you should be able to : • 1. 1. 1 describe the goals of data science. • 1. 1. 2 explain the data science cycle and goals of each step in the cycle. • 1. 1. 3 explain the role of data management in the data science process. data science is a field ...
openstax_principles-of-data-science-web
[ 0.01396963745355606, 0.00557450158521533, -0.002662814222276211, -0.013073991984128952, 0.006048630457371473, -0.011617929674685001, -0.03678563982248306, 0.0028342960868030787, 0.018205955624580383, 0.04806169494986534, -0.0020180928986519575, -0.011869520880281925, 0.030612435191869736, ...
development of personal cell phones. in the past, households typically had only one landline telephone, and the only data that was generated with the telephone was the list of phone numbers called by the household members. today the majority of consumers own a smartphone, which contains a tremendous amount of data : ph...
openstax_principles-of-data-science-web
[ -0.00461890734732151, -0.008450332097709179, -0.004764048848301172, 0.0015510201919823885, 0.004431040026247501, -0.00000326056533594965, -0.026834670454263687, 0.008524042554199696, 0.04053753241896629, 0.03226843476295471, 0.041353076696395874, -0.021686937659978867, 0.04600556194782257, ...
quarter to a third of the time each, depending on the job. problem definition, data collection, and data preparation the first step in the data science cycle is a precise definition of the problem statement to establish clear objectives for the goal and scope of the data analysis project. once the problem has been well...
openstax_principles-of-data-science-web
[ -0.00009163242793874815, 0.008708070032298565, 0.009867321699857712, 0.012958349660038948, -0.023904316127300262, -0.005336460191756487, -0.025602592155337334, 0.03026225045323372, 0.027416938915848732, 0.02282530441880226, 0.008584056980907917, -0.011760112829506397, 0.024898769333958626, ...
user ’ s time zone. even then, some search keywords would have some typos, simply not make sense, or even remain blank if the google server somehow failed to store that specific search history record. note that all these scenarios are possible, and therefore data preparation should address these issues so that the actu...
openstax_principles-of-data-science-web
[ 0.0002412801986793056, 0.020104343071579933, -0.019585708156228065, -0.02404201589524746, -0.030595600605010986, 0.004954461473971605, 0.0007165117422118783, 0.014829649589955807, 0.023372652009129524, 0.04066936671733856, 0.004270442295819521, 0.006400442682206631, 0.01222308911383152, -0...
1. 1 • what is data science? 11 advanced ones, based on what they want to investigate further. descriptive statistics : statistical measurements and probability distributions and inferential statistics and regression analysis discuss when and how to use different analysis methods. time series and forecasting and decisi...
openstax_principles-of-data-science-web
[ -0.0011742798378691077, 0.011967724189162254, -0.0012903684983029962, -0.028591599315404892, 0.018966486677527428, -0.02409433014690876, -0.00011267615627730265, -0.015250928699970245, -0.003296775044873357, 0.04247353598475456, -0.00760073633864522, -0.015902554616332054, -0.011279876343905...
time was being spent on data processing rather than analysis itself. to address this concern, modern data management systems not only store the data itself but also perform some basic processing on a cloud. these systems, referred to as data warehousing, store and manage large volumes of data from various sources in a ...
openstax_principles-of-data-science-web
[ 0.0075057502835989, 0.01724204234778881, -0.01798912137746811, 0.027625136077404022, -0.014111948199570179, 0.014068814925849438, -0.014254678040742874, -0.01035771518945694, 0.04322124645113945, 0.018356412649154663, -0.0018159265164285898, -0.017679262906312943, -0.0022669294849038124, -...
1. 2 data science in practice learning outcomes by the end of this section, you should be able to : • 1. 2. 1 explain the interdisciplinary nature of data science in various fields. • 1. 2. 2 identify examples of data science applications in various fields. • 1. 2. 3 identify current issues and challenges in the field ...
openstax_principles-of-data-science-web
[ 0.006198589224368334, 0.018935836851596832, 0.019379207864403725, -0.001997077139094472, -0.035971011966466904, 0.009739222005009651, -0.021745096892118454, 0.002397711854428053, 0.006454006768763065, 0.08140448480844498, 0.03100721351802349, 0.01578596793115139, 0.03890612721443176, 0.007...
for hurricane frances in 2004. a week before the hurricane ’ s arrival, staff were asked to look back at their data on sales during hurricane charley, which hit several weeks earlier, and then come up with some forecasts about product demand ahead of frances ( hays, 2004 ). among other insights, the executives discover...
openstax_principles-of-data-science-web
[ 0.003375811269506812, 0.03933333605527878, -0.008238259702920914, -0.007292535156011581, -0.00656514335423708, -0.0019338572164997458, -0.012394867837429047, 0.009549891576170921, 0.00378401018679142, 0.06127524748444557, 0.01696035824716091, 0.01344196405261755, -0.0241994708776474, -0.00...
extensively in finance as well. detecting and managing fraudulent transactions is now done by automated machine learning algorithms ( iabac, 2023 ). based on the customer data and the patterns of past fraudulent activities, an algorithm can determine whether a transaction is fraudulent in real time. multiple tech compa...
openstax_principles-of-data-science-web
[ 0.010400119237601757, 0.021368352696299553, 0.014510898850858212, -0.017086312174797058, -0.007368585094809532, 0.02375812642276287, -0.009601915255188942, -0.031429268419742584, 0.028710197657346725, 0.07249585539102554, 0.011307626031339169, -0.0032449003774672747, 0.041510432958602905, ...
1. 2 • data science in practice 13 weather in the future. data science has made weather forecasting more reliable by adopting more sophisticated prediction methods such as time - series analysis, artificial intelligence ( ai ), and machine learning ( covered in time series and forecasting, decision - making using machi...
openstax_principles-of-data-science-web
[ 0.009774740785360336, 0.05330033227801323, 0.03499272093176842, -0.030472582206130028, -0.027379514649510384, 0.02543492428958416, -0.023084022104740143, 0.0060103838331997395, 0.04051971435546875, 0.06216003745794296, 0.01761191338300705, -0.020092958584427834, 0.03569140285253525, 0.0061...
necessary ( van bocxlaer, 2020 ). new york city has adopted smart garbage bins that monitor the amount of garbage in a bin, allowing garbage collection companies to route their collection efforts more efficiently ( van bocxlaer, 2020 ). exploring further sensor networks to monitor energy consumption see how songdo ( ht...
openstax_principles-of-data-science-web
[ 0.02141455002129078, 0.003843143815174699, -0.004662077408283949, 0.03072468563914299, -0.022382427006959915, 0.007860093377530575, -0.008660327643156052, -0.01950569450855255, 0.011588532477617264, 0.07562859356403351, 0.020371802151203156, 0.004899121820926666, 0.04752848669886589, -0.01...
algorithms, and machine learning that analyze historical data and make predictions about future events. medical diagnosis and prescription practices have traditionally been based on a patient ’ s verbal description of symptoms and a doctor ’ s or a group of doctors ’ experience and intuition ; this new movement allows ...
openstax_principles-of-data-science-web
[ 0.01973533257842064, 0.008968837559223175, -0.007478548213839531, 0.0231041070073843, -0.0017836634069681168, 0.0037386605981737375, -0.024756699800491333, -0.02140134759247303, 0.01435012649744749, 0.04504675045609474, 0.011800992302596569, -0.03651725500822067, 0.019525164738297462, 0.00...
/ youtubevk ). “ promise of precision medicine ” signaled a new approach to health care in the united states — one heavily reliant on big data. data science in sports and entertainment data science is prevalent in the sports and the entertainment industry as well. sports naturally produce much data — about the player, ...
openstax_principles-of-data-science-web
[ 0.03207816556096077, 0.011067100800573826, 0.030316410586237907, 0.0005917680100537837, -0.015184946358203888, -0.004356346093118191, -0.0059522464871406555, -0.030211394652724266, 0.021441051736474037, 0.01404739823192358, -0.00018654442101251334, -0.015338036231696606, 0.001707244315184652...
1. 2 • data science in practice 15 exploring further the sabermetrics youtube channel sabermetrics is so popular that there is a youtube channel devoted to it : simple sabermetrics ( https : / / openstax. org / r / simplesabermetrics ), with baseball animations and tutorials explaining how data impacts the way today's ...
openstax_principles-of-data-science-web
[ 0.015962133184075356, 0.014201395213603973, 0.010017557069659233, 0.0029315215069800615, -0.030622532591223717, -0.014557700604200363, -0.044606395065784454, 0.01479775458574295, 0.0061386399902403355, 0.04943400248885155, 0.005696531385183334, -0.009025120176374912, 0.0518486350774765, 0....
, many people have raised concerns about ethics and privacy. who is allowed to collect these data, and who has access to them? none of us want someone else to use our personal data ( e. g., contact information, health records, location, photos, web search history ) without our consent or without knowing the risk of sha...
openstax_principles-of-data-science-web
[ 0.020596405491232872, 0.006854282226413488, 0.007302064914256334, -0.017662007361650467, 0.009928843006491661, -0.011965845711529255, -0.030408229678869247, 0.008626710623502731, -0.013361066579818726, 0.0477118045091629, 0.011055031791329384, -0.02359195426106453, 0.034777943044900894, -0...
1. 3 data and datasets learning outcomes by the end of this section, you should be able to : • 1. 3. 1 define data and dataset. • 1. 3. 2 differentiate among the various data types used in data science. • 1. 3. 3 identify the type of data used in a dataset. • 1. 3. 4 discuss an item and attribute of a dataset. • 1. 3. ...
openstax_principles-of-data-science-web
[ 0.031465064734220505, 0.020812425762414932, 0.05176268517971039, 0.0012450721114873886, -0.02333715930581093, 0.036832429468631744, -0.009739581495523453, -0.014431878924369812, 0.03314110264182091, 0.027728350833058357, -0.007112001068890095, -0.0008151083020493388, 0.026868119835853577, ...
it easier to store data in bulk, such as listing inventories, noting financial transactions, and recording a story for future generations. data “ data ” is the plural of the latin word “ datum, ” which translates as something that is given or used and is often used to mean a single piece of information or a single poin...
openstax_principles-of-data-science-web
[ 0.006674679461866617, -0.0399787463247776, 0.034632034599781036, 0.001983455615118146, -0.030825501307845116, -0.00004890481068287045, 0.04419088736176491, -0.005632360931485891, 0.025590430945158005, 0.05146629735827446, 0.05491041764616966, -0.0060047972947359085, 0.010086869820952415, -...
1. 3 • data and datasets 17 recommended the course was in that semester. you need to analyze them to come up with a decision! now let ’ s think about how to derive the information from these ratings. you would probably look at all the data, including when in the semester the course was offered, who the instructor is, a...
openstax_principles-of-data-science-web
[ 0.010464416816830635, 0.007632235065102577, 0.018738670274615288, -0.021968578919768333, -0.030755946412682533, 0.001200977829284966, 0.014050552621483803, 0.017896078526973724, 0.016812706366181374, 0.0830310508608818, 0.017588933929800987, 0.014719522558152676, 0.048036620020866394, -0.0...
, and open - ended survey responses ( as we ’ ll see in survey design and implementation ) that address unquantifiable details ( e. g., photos, posts on reddit ). the data types often dictate methods for data analysis, so it is important to be able to identify a type of data. thus, this section will take a further dive...
openstax_principles-of-data-science-web
[ 0.006221436429768801, -0.026587966829538345, 0.03270258381962776, -0.017168791964650154, -0.03559653460979462, -0.0017474760534241796, 0.02779080532491207, 0.016709139570593834, -0.0179732758551836, 0.0867316946387291, 0.057579826563596725, 0.024700336158275604, 0.04271085932850838, -0.007...
these numbers are chosen from an infinite set of numbers, the set of natural numbers. note that whether data is continuous ( or discrete ) also depends on the context. for example, the same class size data can be discrete if the campus enforces all classes to be 200 seats or less. such restriction makes the class size ...
openstax_principles-of-data-science-web
[ -0.006737907417118549, -0.013102702796459198, 0.029049066826701164, -0.028713157400488853, -0.0335724838078022, -0.0017222976312041283, 0.02702087163925171, 0.01641893945634365, -0.01612340845167637, 0.09340916574001312, 0.04416868835687637, -0.0042524756863713264, 0.01812039315700531, -0....
1. in that example, we referred to two kinds of data : 1. the temperature during past three days — 90°f, 85°f, … 2. on each of those days, whether you needed a jacket — yes, no,... what is the type of each data? solution the temperatures are numbers followed by the unit degrees fahrenheit ( °f ). also, they indicate me...
openstax_principles-of-data-science-web
[ 0.006873508915305138, 0.0012863373849540949, 0.03502798080444336, -0.017596298828721046, -0.010389807634055614, 0.013065354898571968, 0.031306810677051544, -0.006006497889757156, -0.01615649089217186, 0.06699904054403305, 0.02360878698527813, -0.01670313999056816, 0.03626446798443794, -0.0...
1. 3 • data and datasets 19 the same four attributes, which makes them a structured dataset. as a structured dataset, these items can be listed as a table where each item is listed along the rows of the table. by contrast, an unstructured dataset is one that lacks a predefined or organized data model. while structured ...
openstax_principles-of-data-science-web
[ 0.010614790953695774, -0.014794274233281612, 0.02437729947268963, -0.010333076119422913, 0.00824226438999176, 0.022527199238538742, -0.02187776006758213, -0.01594906486570835, -0.01799614354968071, 0.07065137475728989, 0.011857777833938599, -0.010231235064566135, 0.03213121369481087, -0.00...
solution the dataset has four entries, each of which is identified with a specific date ( oct. 10, oct. 11, oct. 12, oct. 13 ). the dataset has three attributes — date, temperature, needed a jacket. 20 1 • what are data and data science? access for free at openstax. org example 1. 5 problem a dataset has a list of keyw...
openstax_principles-of-data-science-web
[ 0.0156888198107481, 0.005467502865940332, 0.015705173835158348, 0.0008319882908836007, -0.011197916232049465, 0.02380654215812683, -0.022914346307516098, -0.008353014476597309, 0.0025833698455244303, 0.07307262718677521, 0.0022267017047852278, -0.008140445686876774, 0.016874054446816444, -...
most suitable for complex dataset due to its hierarchy - friendly nature. since they all store data as plain texts, you can open them using any typical text editors such as notepad, visual studio code, sublime text, or vi editor. table 1. 3 summarizes the advantages and disadvantages of csv, json, and xml dataset forma...
openstax_principles-of-data-science-web
[ -0.02026832476258278, -0.025360019877552986, 0.03943460062146187, 0.0000990984626696445, 0.005401027854532003, 0.015729285776615143, 0.007436986546963453, -0.004086759872734547, 0.007691193372011185, 0.06991028785705566, -0.05097031593322754, -0.01600097306072712, 0.022784680128097534, -0....
1. 3 • data and datasets 21 dataset format pros cons typical use csv • simple • difficult to add metadata • difficult to parse if there are special characters • flat structure • tabular data json • simple • compatible with many languages • easy to parse • difficult to add metadata • cannot leave comments • data that ne...
openstax_principles-of-data-science-web
[ 0.013540409505367279, -0.022170154377818108, 0.0392913743853569, 0.01873052306473255, 0.013358835130929947, 0.005489781498908997, -0.0034310361370444298, -0.005341594107449055, 0.027775172144174576, 0.059397418051958084, -0.004624545574188232, -0.03346662595868111, 0.018096139654517174, -0...
up for a course can be stored as a csv file. figure 1. 4 shows how the dataset looks when opened with a text editor ( e. g., notepad, textedit, ms word, google doc ) or programming software in the form of a code editor ( e. g., sublime text, visual studio code, xcode ). notice that commas are used to separate the attri...
openstax_principles-of-data-science-web
[ 0.017709579318761826, -0.02109607122838497, 0.05234686657786369, 0.01592455804347992, -0.009717993438243866, -0.02419794350862503, 0.0075664035975933075, -0.012721370905637741, 0.015241047367453575, 0.04226159676909447, -0.014969326555728912, 0.016268597915768623, 0.02729201316833496, 0.01...
cancerdoc. csv, ” and “ ch1 - riris. csv, ” which are the names of each dataset.
openstax_principles-of-data-science-web
[ 0.001474997610785067, -0.012621764093637466, 0.07423475384712219, -0.0018094193655997515, -0.013267588801681995, -0.03681953623890877, -0.020836755633354187, -0.028803767636418343, 0.032503701746463776, 0.0392291434109211, 0.02490670420229435, 0.03986531123518944, 0.0277828611433506, -0.01...
1. 3 • data and datasets 23 figure 1. 6 the dataset spreadsheet file for chapter 1 ( used with permission from microsoft ) to save each dataset as a separate csv file, choose the tab of your interest and select file > save as... > csv file format. this will only save the current tab as a csv file. make sure the file na...
openstax_principles-of-data-science-web
[ 0.003940414171665907, 0.006525988690555096, 0.042268406599760056, -0.0026784103829413652, -0.026536572724580765, -0.02075708843767643, 0.014759114943444729, -0.012560519389808178, 0.05084283649921417, 0.07128074020147324, -0.016247006133198738, 0.010999179445207119, 0.01704397052526474, -0...
semester " : " fall 2021 ", " semester " : " spring 2022 ", " semester " : " fall 2022 ", and " semester " : " spring 2023 ". courseevaluations. json ( https : / / openstax. org / r / filed1v ) has one key - value pair at the highest level : " members " : [... ]. you can see that each item of the dataset is listed in t...
openstax_principles-of-data-science-web
[ 0.0112463915720582, -0.011487675830721855, 0.01111246645450592, 0.006791236344724894, -0.03635053336620331, -0.002173778833821416, 0.002539294306188822, -0.023610448464751244, 0.024578465148806572, 0.06535917520523071, 0.005842975340783596, 0.02254300005733967, 0.04082569479942322, -0.0254...
. under < members >, each item is defined between < evaluation > and < / evaluation >. since the dataset in figure 1. 8 has three items, we can see three blocks of < evaluation >... < / evaluation >. each item has four attributes, and they are defined as different xml tags as well — < semester >, < instructor >, < clas...
openstax_principles-of-data-science-web
[ 0.008655262179672718, -0.016163047403097153, 0.03929195925593376, 0.014558173716068268, -0.004336144775152206, -0.0007451939745806158, 0.017066042870283127, -0.038461875170469284, 0.02788195200264454, 0.036084577441215515, -0.0019650189206004143, 0.021462304517626762, 0.03921223804354668, ...
1. 3 • data and datasets 25 figure 1. 9 the directory structure of the small traffic light dataset the annotation directories have a list of xml files, each of which corresponds to an image file with the same filename inside the corresponding image directory ( figure 1. 10 ). figure 1. 11 shows that the first xml file ...
openstax_principles-of-data-science-web
[ 0.022537915036082268, -0.00668355543166399, 0.025770526379346848, -0.0255996435880661, 0.0010582557879388332, -0.033904366195201874, -0.01958579756319523, -0.015520332381129265, 0.014307002536952496, 0.07314478605985641, -0.026138408109545708, -0.0015947706997394562, 0.0328654870390892, -0...
describe each column name of the dataset along with its data type. figure 1. 12 an example json file with metadata figure 1. 13 an example xml dataset with metadata the face mask detection ( https : / / openstax. org / r / andrewmvd ) dataset has a set of images of human faces with masks on. it follows a similar struct...
openstax_principles-of-data-science-web
[ 0.019350320100784302, -0.005395383108407259, 0.016280943527817726, -0.021602243185043335, 0.013075601309537888, -0.020557479932904243, -0.010630695149302483, -0.015637105330824852, 0.008759479969739914, 0.056659962981939316, 0.021066879853606224, 0.003817721037194133, 0.033983539789915085, ...
1. 3 • data and datasets 27 image with the same filename. for example, “ maksssksksss0. xml ” includes information on “ maksssksksss0. png. ” example 1. 7 problem the iris flower dataset ( ch1 - iris. csv ( https : / / openstax. org / r / filed ) ) is a classic dataset in the field of data analysis. 1 download this dat...
openstax_principles-of-data-science-web
[ 0.008049266412854195, 0.004910952877253294, 0.023833809420466423, -0.01939898170530796, -0.007837008684873581, -0.012257389724254608, -0.0043667093850672245, -0.006900400388985872, 0.03468518704175949, 0.03200889751315117, 0.0025998526252806187, -0.02527739852666855, -0.009222099557518959, ...
“ answer ”, “ round ”, and “ show _ number ”. the third item is located at index 2 of the first list as shown in figure 1. 14. figure 1. 14 the third item in the jeopardy dataset 1 the iris flower dataset was introduced by the british statistician and biologist ronald fisher in his 1936 paper “ the use of multiple meas...
openstax_principles-of-data-science-web
[ 0.015085696242749691, -0.009553550742566586, 0.032077133655548096, -0.04295733943581581, -0.04994579032063484, -0.006876830942928791, -0.016660556197166443, 0.0020934604108333588, 0.03874759376049042, 0.00520783755928278, 0.020254172384738922, -0.054396308958530426, 0.01588471792638302, -0...
1. 4 using technology for data science learning outcomes by the end of this section, you should be able to : • 1. 4. 1 explain how statistical software can help with data analysis. • 1. 4. 2 explain the uses of different programs and programming languages for data manipulation, analysis, and visualizations. • 1. 4. 3 e...
openstax_principles-of-data-science-web
[ 0.031131353229284286, -0.005588413216173649, 0.03051166795194149, 0.029443902894854546, -0.011438978835940361, 0.01788816601037979, -0.0174240805208683, -0.005815265234559774, 0.0180278941988945, 0.025106027722358704, -0.004206598736345768, 0.01088004745543003, 0.02562648057937622, -0.0079...
science for a review of excel functionality. ) google sheets is a cloud - based spreadsheet program provided by google as part of the google workspace. because it is cloud - based, it is possible to access spreadsheets from any device with an internet connection. this accessibility allows for collaboration and real - t...
openstax_principles-of-data-science-web
[ 0.023597098886966705, -0.006701739504933357, -0.002537641441449523, -0.021517634391784668, -0.0026928100269287825, 0.0015088901855051517, 0.017486166208982468, -0.021743925288319588, -0.00923736859112978, 0.0294929351657629, 0.02187464013695717, 0.024043884128332138, -0.00022352438827510923,...
1. 4 • using technology for data science 29 we have chosen to focus on python in this text because of its straightforward and intuitive syntax, which makes it especially easy for beginners to learn and apply. also, python skills can apply to a wide range of computing work. python also contains a vast network of librari...
openstax_principles-of-data-science-web
[ 0.026041250675916672, 0.015292591415345669, 0.010386391542851925, -0.020665226504206657, 0.0022856227587908506, 0.03315219655632973, 0.0040086256340146065, -0.009474714286625385, -0.011317651718854904, 0.06249784678220749, -0.012263825163245201, -0.007072200533002615, 0.0259513221681118, -...
among others, as briefly described in this article on “ the nine top programming languages for data science ( https : / / openstax. org / r / 9top ). ” other data analysis / visualization tools there are a few other data analysis tools that are strong in data visualization. tableau ( https : / / openstax. org / r / tab...
openstax_principles-of-data-science-web
[ -0.01023037824779749, -0.013231605291366577, 0.006696055177599192, -0.015643689781427383, 0.018255755305290222, -0.01157425157725811, -0.012951786629855633, -0.013504879549145699, 0.021116286516189575, 0.04562249779701233, -0.043075937777757645, 0.017361139878630638, 0.021752361208200455, ...
/ r / iadss1 ) • data science association ( dsa ) ( https : / / openstax. org / r / datascienceassn1 ) • association of data scientists ( adasci ) ( https : / / openstax. org / r / adasci1 )
openstax_principles-of-data-science-web
[ -0.011967513710260391, 0.013117839582264423, 0.008822910487651825, 0.022778596729040146, -0.014886271208524704, -0.009466526098549366, -0.004128583706915379, -0.008084949105978012, 0.008571482263505459, 0.07969933748245239, -0.030470862984657288, 0.03661148622632027, 0.03521701693534851, -...
1. 5 data science with python learning outcomes by the end of this section, you should be able to • 1. 5. 1 load data to python. • 1. 5. 2 perform basic data analysis using python. • 1. 5. 3 use visualization principles to graphically plot data using python. multiple tools are available for writing and executing python...
openstax_principles-of-data-science-web
[ 0.026749590411782265, 0.0028874436393380165, -0.011436284519731998, -0.02111426182091236, -0.0020269399974495173, 0.03840800002217293, -0.017016278579831123, -0.005418136715888977, 0.0032812997233122587, 0.05704119801521301, -0.042226266115903854, 0.0032715557608753443, 0.011832000687718391,...
, and save a jupyter notebook on your google drive. setting up colab is simple. on your google drive, click new > more. if your google drive has already installed colab before, you will see colaboratory under more. if not, click “ connect more apps ” and install colab by searching “ colaboratory ” on the app store ( fi...
openstax_principles-of-data-science-web
[ 0.017458491027355194, 0.02760341949760914, -0.01905798353254795, -0.0033254078589379787, -0.009217288345098495, 0.0017799538327381015, 0.013190564699470997, -0.0034785529132932425, 0.035540871322155, 0.033359479159116745, -0.04077911004424095, -0.006134713999927044, 0.013708178885281086, -...
1. 5 • data science with python 31 figure 1. 15 install google colaboratory ( colab ) now click new > more > google laboratory. a new, empty jupyter notebook will show up as in figure 1. 16. figure 1. 16 google colaboratory notebook the gray area with the play button is called a cell. a cell is a block where you can ty...
openstax_principles-of-data-science-web
[ 0.020231986418366432, 0.011787716299295425, 0.0057666185311973095, 0.008571190759539604, 0.01974521577358246, 0.006180698052048683, 0.006112850271165371, -0.014359545893967152, 0.008658488281071186, 0.040820978581905365, -0.02087761089205742, 0.030664710327982903, 0.017046354711055756, -0....
requires print ( ) syntax to print something to the program console, jupyter notebook does not require print ( ). on jupyter notebook, the line a + b instead of print ( a + b ) also prints the value of a + b as an output. but keep in mind that if there are multiple lines of code that trigger printing some values, only ...
openstax_principles-of-data-science-web
[ 0.002777375979349017, -0.0145421102643013, -0.0316082201898098, 0.015885401517152786, 0.027351949363946915, -0.0055610924027860165, 0.007400368340313435, -0.0168246291577816, 0.016328660771250725, 0.0470791719853878, -0.04311297461390495, -0.0015502459136769176, 0.0007793051190674305, 0.00...
1. 5 • data science with python 33 one thing to keep in mind is that being able to split a long program into multiple blocks and run one block at a time raises chances of user error. let ’ s look at a modified code from the previous example. a = 1 print ( " the value in the first cell : ", a ) the resulting output will...
openstax_principles-of-data-science-web
[ 0.03026694245636463, 0.021290723234415054, -0.0025332572404295206, -0.03350045159459114, 0.0014658826403319836, -0.01765546388924122, 0.021703915670514107, -0.024732721969485283, 0.02416977658867836, 0.049031224101781845, -0.01162741519510746, 0.010038974694907665, 0.03050805814564228, -0....
cell is located below the second cell. therefore, it is recommended to use “ run all ” or “ run before ” after you make changes across multiple cells of code. this way your code is guaranteed to run sequentially from the top. python pandas one of the strengths of python is that it includes a variety of free, open - sou...
openstax_principles-of-data-science-web
[ 0.02754860930144787, -0.00006495179695775732, -0.001401861198246479, -0.041560858488082886, 0.00969747919589281, 0.004307800903916359, 0.02755681797862053, -0.014258570969104767, 0.018177831545472145, 0.06348390877246857, -0.004973879083991051, 0.014216878451406956, 0.01969166286289692, -0...
1. 5 • data science with python 35 pandas is a python library specialized for data manipulation and analysis, and it is very commonly used among data scientists. it offers a variety of methods, which allows data scientists to quickly use them for data analysis. you will learn how to analyze data using pandas throughout...
openstax_principles-of-data-science-web
[ 0.027989210560917854, 0.019494304433465004, 0.02887478470802307, -0.002487762598320842, -0.011450794525444508, 0.055381178855895996, -0.027411682531237602, 0.03640364110469818, 0.005642954260110855, 0.04922563210129738, -0.021048232913017273, -0.014771532267332077, 0.013037702068686485, -0...
google drive ” on the pop - up window. python code 36 1 • what are data and data science? access for free at openstax. org figure 1. 19 features under files on colab notice that a new cell has been inserted on the notebook as a result ( figure 1. 20 ). figure 1. 20 an inserted cell to mount your google drive connect yo...
openstax_principles-of-data-science-web
[ 0.018500305712223053, 0.00984294805675745, 0.02885470539331436, 0.011400033719837666, -0.016187375411391258, 0.03488292545080185, -0.00877232477068901, 0.01098682265728712, 0.03834819048643112, 0.02460205741226673, -0.017279358580708504, 0.03230499476194382, 0.02633090503513813, -0.0116775...
1. 5 • data science with python 37 data = pd. read _ csv ( " [ path ] " ) data the resulting output will look like this : the read _ csv ( ) method in pandas loads a csv file and stores it as a dataframe. a dataframe is a data type that pandas uses to store multi - column tabular data. therefore, the variable data hold...
openstax_principles-of-data-science-web
[ 0.013927743770182133, 0.010659919120371342, 0.05168060213327408, 0.009823783300817013, -0.036124832928180695, 0.042546775192022324, -0.0074841976165771484, 0.00044258037814870477, 0.023090580478310585, 0.05394740402698517, -0.015956776216626167, -0.021946202963590622, -0.002294710837304592, ...
a google drive. make sure to replace the path with the actual path to ch1 - iris. csv ( https : / / openstax. org / r / filed ) on your google drive. 38 1 • what are data and data science? access for free at openstax. org import pandas as pd data = pd. read _ csv ( " [ path to ch1 - iris. csv ] " ) # replace the path d...
openstax_principles-of-data-science-web
[ 0.034514036029577255, 0.03955870494246483, 0.040620412677526474, 0.001724857371300459, -0.028900377452373505, 0.010763291269540787, -0.004529099445790052, -0.009282561019062996, 0.051166072487831116, 0.06132741644978523, -0.007419445086270571, 0.006368089001625776, -0.0018236354226246476, ...
1. 5 • data science with python 39 data = pd. read _ csv ( " [ path to ch1 - movieprofit. csv ] " ) data. describe ( ) like this : describe ( ) returns a table whose columns are a subset of the columns in the entire dataset and whose rows are different statistics. the statistics include the number of unique values in a...
openstax_principles-of-data-science-web
[ 0.020743099972605705, 0.004992871079593897, 0.04351329430937767, -0.020145272836089134, -0.014159074984490871, 0.004956900607794523, -0.031519077718257904, -0.0028210633900016546, 0.00506206788122654, 0.057432208210229874, 0.005699021741747856, -0.01924341544508934, -0.012055270373821259, ...
3 936. 66 4 678. 82... 961 77. 22 962 177. 20 963 102. 31 964 106. 89 965 75. 47 name : us _ gross _ million, length : 966, dtype : float64 dataframe. iloc [ ] enables a more powerful selection — it lets a programmer select by both column and row, using column and row indices. let ’ s look at some code examples below. ...
openstax_principles-of-data-science-web
[ 0.024104278534650803, 0.012954906560480595, 0.043766312301158905, -0.02577368915081024, -0.02722199074923992, -0.001466358662582934, 0.021951399743556976, 0.004276089370250702, 0.007739844731986523, 0.04746006056666374, 0.021302463486790657, -0.020131263881921768, -0.00008355887985089794, ...
659. 33 you can also use dataframe. iloc [ ] to select a specific group of cells on the table. the example code below shows different ways of using iloc [ ]. there are multiple ways of using iloc [ ], but this chapter introduces a couple of common ones. you will learn more techniques for working with data throughout th...
openstax_principles-of-data-science-web
[ 0.03423469513654709, 0.017876647412776947, 0.04968579113483429, -0.004397069104015827, -0.05003747344017029, -0.013202143833041191, -0.003369818441569805, -0.0018688139971345663, 0.021787526085972786, 0.03279483690857887, 0.0381413958966732, 0.012725449167191982, -0.0008281616610474885, 0....
iloc [ ]. python code 44 1 • what are data and data science? access for free at openstax. org solution the following code in a new cell returns the “ petal _ length ” column. data. iloc [ :, 2 ] the resulting output will look like this : 0 1. 4 1 1. 4 2 1. 3 3 1. 5 4 1. 4... 145 5. 2 146 5. 0 147 5. 2 148 5. 4 149
openstax_principles-of-data-science-web
[ 0.018938660621643066, -0.025623755529522896, 0.04053667187690735, -0.023696979507803917, -0.03614543750882149, -0.03445819765329361, 0.03049434721469879, 0.012953372672200203, 0.05349645018577576, 0.035339243710041046, 0.024547021836042404, 0.03571280837059021, -0.024846401065587997, -0.03...
5. 1 name : petal _ length, length : 150, dtype : float64 search data using python pandas to search for some data entries that fulfill specific criteria ( i. e., filter ), you can use dataframe. loc [ ] of pandas. when you indicate the filtering criteria inside the brackets, [ ], the output returns the filtered rows wi...
openstax_principles-of-data-science-web
[ 0.02667926624417305, -0.018842000514268875, 0.059107813984155655, -0.013899496756494045, -0.035175763070583344, -0.004049099516123533, 0.03536643460392952, 0.027445053681731224, 0.025069715455174446, 0.047056447714567184, 0.02175174281001091, -0.008614925667643547, -0.02631140500307083, -0...
1. 5 • data science with python 45 example 1. 13 problem using dataframe. loc [ ], search for all the items of iris - virginica species in the iris dataset. solution the following code returns a filtered dataframe whose species are iris - virginica. all such rows show up as an output. data = pd. read _ csv ( " [ path t...
openstax_principles-of-data-science-web
[ 0.004544333554804325, -0.01198600884526968, 0.05924466997385025, -0.0314466767013073, -0.01676098257303238, 0.0014149075141176581, 0.017666824162006378, 0.01745985634624958, 0.010301920585334301, 0.06764603406190872, 0.029293637722730637, -0.020663851872086525, 0.001181170460768044, -0.008...
1. 5 • data science with python 47 visualize data using python matplotlib there are multiple ways to draw plots of data in python. the most common and straightforward way is to import another library, matplotlib, which is specialized for data visualization. matplotlib is a huge library, and to draw the plots you only n...
openstax_principles-of-data-science-web
[ 0.01403111033141613, 0.015364321880042553, 0.004389180336147547, -0.060341279953718185, 0.007742648478597403, -0.0006061791209504008, 0.010649189352989197, -0.015160463750362396, 0.02743695303797722, 0.0514785535633564, -0.04435015097260475, 0.0014873938634991646, 0.025612717494368553, -0....
a scatterplot using matplotlib ’ s scatter ( ) plt. scatter ( data [ " us _ gross _ million " ], data [ " worldwide _ gross _ million " ] ) the resulting output will look like this : notice that it simply has a set of dots on a white plane. the plot itself does not show what each axis represents, what this plot is abou...
openstax_principles-of-data-science-web
[ -0.018572228029370308, 0.0011845037806779146, -0.020118556916713715, -0.04072951152920723, 0.006734494585543871, -0.03693113103508949, 0.024883488193154335, -0.027431560680270195, 0.03156327083706856, 0.03242732584476471, -0.01334052812308073, 0.00931775663048029, 0.007710119243711233, -0....
1. 5 • data science with python 49 you can also change the range of numbers along the x - and y - axes with plt. xlim ( ) and plt. ylim ( ). add the following two lines of code to the cell in the previous python code example, which plots the scatterplot. # draw a scatterplot plt. scatter ( data [ " us _ gross _ million...
openstax_principles-of-data-science-web
[ -0.005047544836997986, 0.011456326581537724, 0.052509743720293045, -0.04574349522590637, -0.023474518209695816, -0.008645594120025635, 0.01726248674094677, -0.03224115073680878, 0.012594821862876415, 0.04604369401931763, -0.008659051731228828, 0.004174490459263325, 0.005179281812161207, -0...
setosa') ] # draw a scatterplot plt. scatter ( setosa [ " petal _ length " ], setosa [ " petal _ width " ] ) python code
openstax_principles-of-data-science-web
[ 0.0029731851536780596, 0.019542716443538666, 0.0318659283220768, -0.04227328673005104, -0.025276094675064087, -0.038100697100162506, 0.00387720949947834, 0.0009054737747646868, 0.040895506739616394, 0.020284440368413925, 0.0011236104182898998, 0.02188299410045147, 0.013529851101338863, 0.0...
1. 5 • data science with python 51 # set the title plt. title ( " petal length vs. petal width of setosa iris " ) # set the x - axis label plt. xlabel ( " petal length " ) # set the y - axis label plt. ylabel ( " petal width " ) the resulting output will look like this : datasets note : the primary datasets referenced ...
openstax_principles-of-data-science-web
[ -0.005809722002595663, -0.010508012026548386, 0.061978016048669815, -0.022550158202648163, -0.020222192630171776, -0.0064962743781507015, 0.015781497582793236, -0.01985892280936241, 0.015339452773332596, 0.03027135320007801, -0.013358889147639275, -0.01788279227912426, 0.021465813741087914, ...
of visual elements such as charts, graphs, and maps data warehousing the process of storing and managing large volumes of data from various sources in a central location for easier access and analysis by businesses dataframe a data type that pandas uses to store a multi - column tabular data dataset a collection of rel...
openstax_principles-of-data-science-web
[ 0.0033958228304982185, -0.00916632916778326, 0.015365427359938622, 0.001020274474285543, -0.008848452940583229, 0.015389528125524521, 0.04216359183192253, -0.009821245446801186, -0.004717259667813778, 0.044683560729026794, -0.005741870030760765, -0.004311471711844206, -0.010332426987588406, ...
non - numerical data that generally describe subjective attributes or characteristics and are analyzed using methods such as thematic analysis or content analysis quantitative data data that can be measured by specific quantities and amounts and are often analyzed using statistical methods r an open - source programmin...
openstax_principles-of-data-science-web
[ 0.00698028365150094, -0.014912758953869343, 0.014528275467455387, -0.001779007725417614, 0.02142605558037758, 0.01251424290239811, 0.010850370861589909, -0.022988399490714073, -0.00040045956848189235, 0.03242599964141846, 0.006312535610049963, -0.01455297414213419, -0.008342466317117214, -...
##ch ) using the suggested sources or similar - quality sources that you research on the internet, find two to three datasets about the field or industry in which you intend to work. ( you might also try to determine whether similar data sets are available at the national, state / province, and local / city levels. ) i...
openstax_principles-of-data-science-web
[ 0.0233053769916296, 0.0008559558191336691, 0.01386334653943777, 0.0005054770736023784, -0.0016718909610062838, -0.012254785746335983, -0.019311334937810898, -0.00024103627947624773, 0.015262109227478504, 0.06313459575176239, -0.003045277204364538, 0.0009733554907143116, 0.04189663752913475, ...
, including fair use of copyrighted materials ( see the u. s. copyright office guidelines ( https : / / openstax. org / r / fairuse ). ) c. bias concerns related to data collection ( see the national cancer institute ( nci ) article ( https : / / openstax. org / r / bias ) on data bias. ) suppose that you are part of a...
openstax_principles-of-data-science-web
[ 0.015140227973461151, 0.025243639945983887, 0.022340603172779083, -0.015935402363538742, -0.0003016218252014369, -0.005901729222387075, -0.03674313798546791, -0.002277323743328452, -0.00909795518964529, 0.05487285926938057, 0.006400402635335922, -0.015196245163679123, 0.030699975788593292, ...