Temporal Anomalies Python code

From Chrysalis Archive
Revision as of 00:34, 19 April 2024 by Don86326 (talk | contribs) (Created page with "{{menuTemporalAnomalies}} <div style="background-color:azure; border:1px outset azure; padding:0 20px; max-width:860px; margin:0 auto; "> The temporal anomalies data file was sourced by Prof. Maylor. * File:Temporal Records Oct 2023 to April 2024.docx ===Data conditioning from/to file=== <pre style="margin-left:3em; font:normal 14px terminal;"> # Python code to read 'Extracted_Temporal_Records.csv', # condition date field to Python compatible, and # print to scre...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Temporal Anomalies and the Warp Technologies Research Centre

Temporal Anomalies & the W-TRC ☀  Geodesic Polyhedron Iso-Sphere ☀  Ref: W. B. Smith ☀  Temporal Anomalies Python code

The temporal anomalies data file was sourced by Prof. Maylor.


Data conditioning from/to file

# Python code to read 'Extracted_Temporal_Records.csv',
# condition date field to Python compatible, and 
# print to screen and to file as 'output.csv'.
# 
# Code prompted by [[User:XenoEngineer|XenoEngineer]] @claude.ai Haiki 3

import pandas as pd

pd.set_option('display.max_rows', None)  # Show all rows
pd.set_option('display.max_columns', None)  # Show all columns
pd.set_option('display.width', None)  # Don't truncate the output width

df = pd.read_csv('Extracted_Temporal_Records.csv')
df['Date'] = pd.to_datetime(df['Date'], format='mixed', errors='coerce')

#  Print the python-ready CSV data to the screen
print(df)

#  Print the python-ready CSV data to file
df.to_csv('output.csv', index=False)