This file contains hidden or 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
| ls | sol | target_temp | target_pressure | activity | activity_type | activity_handler | earth_date | trigger_schedule_time | mars_satellite_processing_delay_mins | martian_activity_location | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 155 | 1 | -44.259999999985936 | 838.5199999998765 | CO2 Pump | Level 3 | ESDA | 2030-01-01 | 12 PM | 7 | SW Melas | |
| 155 | 2 | -45.49811371552343 | 739.0976207267042 | Launch Probe | Level 2 | ISRO | 2030-01-02 | 12 PM | 4 | Eberswalde | |
| 156 | 3 | -43.49804145545119 | 740.1981073071904 | Solar Focus | Level 3 | NASA | 2030-01-03 | 12 AM | 1 | Eberswalde | |
| 156 | 4 | -46.99796919537892 | 741.2985938876911 | Solar Focus | Level 3 | ESDA | 2030-01-04 | 12 AM | 9 | SW Melas | |
| 157 | 5 | -44.49789693530664 | 732.3990804681772 | BioEngineered O2 Seed | Level 3 | ESDA | 2030-01-05 | 12 AM | 1 | NE Syrtis |
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 15 columns, instead of 4 in line 5.
This file contains hidden or 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
| index,ls,min_temp,max_temp,pressure,avg_temp,Sol,transformer,transformed_avg_temp,transformed_min_temp,transformed_max_temp,transformed_min_temp_dampened,transformed_max_temp_dampened,transformer_pressure,transformed_pressure | |
| 0,155,-76.38948170731707,-12.134146341463415,838.5228658536586,-44.26181402439025,1,-44.25999999999999,-44.25999999998594,-76.38766768291276,-12.13233231705911,-76.38763571508423,-12.13236428488765,838.5200000000041,838.5199999998766 | |
| 1,155,-75.0,-16.0,739.0,-45.5,2,-44.25992773992773,-45.49811371552344,-74.99811371552343,-15.998113715523438,-74.99805500905578,-15.9981724219911,838.6204865804903,739.0976207267042 | |
| 2,156,-76.0,-11.0,740.0,-43.5,3,-44.259855479855474,-43.49804145545118,-75.99804145545119,-10.99804145545118,-75.9979444405258,-10.998138470376553,838.7209731609764,740.1981073071904 | |
| 3,156,-76.0,-18.0,741.0,-47.0,4,-44.259783219783216,-46.99796919537892,-75.99796919537891,-17.99796919537892,-75.99785377249334,-17.998084618264496,838.8214597414772,741.2985938876911 | |
| 4,157,-74.0,-15 |
This file contains hidden or 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
| def create_spark_session(): | |
| ''' | |
| This function creates a spark session or finds an existing one and returns it | |
| Parameters - none | |
| Returns - spark session object | |
| ''' | |
| spark = SparkSession \ | |
| .builder \ | |
| .config("spark.jars.packages", "org.apache.hadoop:hadoop-aws:2.7.0") \ |