Created
November 5, 2018 19:53
-
-
Save ajayborra/6e48f99271dcb19eb580dfa3145b0cf3 to your computer and use it in GitHub Desktop.
DataFrame Output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Displays the content of the DataFrame to stdout | |
df.show() | |
Output: | |
+-------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+ | |
|houseId| medianHouseValue| medianIncome| housingMedianAge| totalRooms| totalBedrooms| population| households| latitude| longitude| | |
+-------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+ | |
| 1|4.526000000000000...|8.325200000000000...|4.100000000000000...|8.800000000000000...|1.290000000000000...|3.220000000000000...|1.260000000000000...|3.788000000000000...|-1.22230000000000...| | |
| 2|3.585000000000000...|8.301399999999999...|2.100000000000000...|7.099000000000000...|1.106000000000000...|2.401000000000000...|1.138000000000000...|3.785999999999999...|-1.22220000000000...| | |
| 3|3.521000000000000...|7.257399999999999...|5.200000000000000...|1.467000000000000...|1.900000000000000...|4.960000000000000...|1.770000000000000...|3.785000000000000...|-1.22239999999999...| | |
| 4|3.413000000000000...|5.643099999999999...|5.200000000000000...|1.274000000000000...|2.350000000000000...|5.580000000000000...|2.190000000000000...|3.785000000000000...|-1.22250000000000...| | |
| 5|3.422000000000000...|3.846200000000000...|5.200000000000000...|1.627000000000000...|2.800000000000000...|5.650000000000000...|2.590000000000000...|3.785000000000000...|-1.22250000000000...| | |
| 6|2.697000000000000...|4.036800000000000...|5.200000000000000...|9.190000000000000...|2.130000000000000...|4.130000000000000...|1.930000000000000...|3.785000000000000...|-1.22250000000000...| | |
| 7|2.992000000000000...|3.659100000000000...|5.200000000000000...|2.535000000000000...|4.890000000000000...|1.094000000000000...|5.140000000000000...|3.784000000000000...|-1.22250000000000...| | |
| 8|2.414000000000000...|3.120000000000000...|5.200000000000000...|3.104000000000000...|6.870000000000000...|1.157000000000000...|6.470000000000000...|3.784000000000000...|-1.22250000000000...| | |
| 9|2.267000000000000...|2.080400000000000...|4.200000000000000...|2.555000000000000...|6.650000000000000...|1.206000000000000...|5.950000000000000...|3.784000000000000...|-1.22260000000000...| | |
| 10|2.611000000000000...|3.691199999999999...|5.200000000000000...|3.549000000000000...|7.070000000000000...|1.551000000000000...|7.140000000000000...|3.784000000000000...|-1.22250000000000...| | |
| 11|2.815000000000000...|3.203100000000000...|5.200000000000000...|2.202000000000000...|4.340000000000000...|9.100000000000000...|4.020000000000000...|3.785000000000000...|-1.22260000000000...| | |
| 12|2.418000000000000...|3.270500000000000...|5.200000000000000...|3.503000000000000...|7.520000000000000...|1.504000000000000...|7.340000000000000...|3.785000000000000...|-1.22260000000000...| | |
| 13|2.135000000000000...|3.075000000000000...|5.200000000000000...|2.491000000000000...|4.740000000000000...|1.098000000000000...|4.680000000000000...|3.785000000000000...|-1.22260000000000...| | |
| 14|1.913000000000000...|2.673600000000000...|5.200000000000000...|6.960000000000000...|1.910000000000000...|3.450000000000000...|1.740000000000000...|3.784000000000000...|-1.22260000000000...| | |
| 15|1.592000000000000...|1.916700000000000...|5.200000000000000...|2.643000000000000...|6.260000000000000...|1.212000000000000...|6.200000000000000...|3.785000000000000...|-1.22260000000000...| | |
| 16|1.400000000000000...|2.125000000000000...|5.000000000000000...|1.120000000000000...|2.830000000000000...|6.970000000000000...|2.640000000000000...|3.785000000000000...|-1.22260000000000...| | |
| 17|1.525000000000000...|2.774999999999999...|5.200000000000000...|1.966000000000000...|3.470000000000000...|7.930000000000000...|3.310000000000000...|3.785000000000000...|-1.22270000000000...| | |
| 18|1.555000000000000...|2.120200000000000...|5.200000000000000...|1.228000000000000...|2.930000000000000...|6.480000000000000...|3.030000000000000...|3.785000000000000...|-1.22270000000000...| | |
| 19|1.587000000000000...|1.991100000000000...|5.000000000000000...|2.239000000000000...|4.550000000000000...|9.900000000000000...|4.190000000000000...|3.784000000000000...|-1.22260000000000...| | |
| 20|1.629000000000000...|2.603299999999999...|5.200000000000000...|1.503000000000000...|2.980000000000000...|6.900000000000000...|2.750000000000000...|3.784000000000000...|-1.22270000000000...| | |
+-------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment