Python and phyphox: Difference between revisions
From wikiluntti
Line 8: | Line 8: | ||
The data is located in <code><data-containers></code> blocks and <code><container></code> tag contains the data of each measurements. | The data is located in <code><data-containers></code> blocks and <code><container></code> tag contains the data of each measurements. | ||
=== Load the data === | |||
The simplest | |||
<syntaxhighlight lang="python"> | |||
import pandas as pd | |||
df = pd.read_xml( filename ) | |||
</syntaxhighlight> | |||
does not work if the XML file is too large. Thus use | |||
== Flights == | == Flights == |
Revision as of 18:48, 9 June 2025
Introduction
Phyphox XML and VIM
Activate the matchit.vim macro :runtime macros/matchit.vim
and set the filetype :set filetype=html
(or xml), and now % swaps between the tags.
The data is located in <data-containers>
blocks and <container>
tag contains the data of each measurements.
Load the data
The simplest
import pandas as pd
df = pd.read_xml( filename )
does not work if the XML file is too large. Thus use